summaryrefslogtreecommitdiff
path: root/system/testdisk/testdisk.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2011-04-03 01:09:56 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-04-03 09:59:50 -0500
commitc81f0f1660502595dbf7e962a0591820a11398d0 (patch)
tree4086d37777dc24565551ac0676d0d2e66da952be /system/testdisk/testdisk.SlackBuild
parentd5f3875c8b4517ff1a140396e9d693a43cea7c07 (diff)
downloadslackbuilds-c81f0f1660502595dbf7e962a0591820a11398d0.tar.gz
system/testdisk: Updated for version 6.12_WIP.
This is actually a beta, but the released versions won't work with ncurses-5.8 (according to reports on our mail list), so this should probably be updated despite its beta status. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/testdisk/testdisk.SlackBuild')
-rw-r--r--system/testdisk/testdisk.SlackBuild20
1 files changed, 10 insertions, 10 deletions
diff --git a/system/testdisk/testdisk.SlackBuild b/system/testdisk/testdisk.SlackBuild
index 7a77142555..39a677c8f5 100644
--- a/system/testdisk/testdisk.SlackBuild
+++ b/system/testdisk/testdisk.SlackBuild
@@ -4,10 +4,12 @@
# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=testdisk
-VERSION=6.11
+VERSION=6.12_WIP
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRC_VERSION="$(printf $VERSION | tr _ -)"
+
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -42,9 +44,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$SRC_VERSION
+tar xvf $CWD/$PRGNAM-$SRC_VERSION.tar.bz2
+cd $PRGNAM-$SRC_VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -56,7 +58,7 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --docdir=/usr/doc/$PRGNAM-$SRC-VERSION \
--build=$ARCH-slackware-linux
make
@@ -65,14 +67,12 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
# Thanks for ignoring the --docdir setting
mv $PKG/usr/share/doc $PKG/usr ; rmdir $PKG/usr/share
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$SRC_VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc