aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/testdisk/testdisk.SlackBuild20
-rw-r--r--system/testdisk/testdisk.info6
2 files changed, 13 insertions, 13 deletions
diff --git a/system/testdisk/testdisk.SlackBuild b/system/testdisk/testdisk.SlackBuild
index 7a77142555208..39a677c8f5119 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
diff --git a/system/testdisk/testdisk.info b/system/testdisk/testdisk.info
index 42a68f2c890bb..b40f20f0e0fea 100644
--- a/system/testdisk/testdisk.info
+++ b/system/testdisk/testdisk.info
@@ -1,8 +1,8 @@
PRGNAM="testdisk"
-VERSION="6.11"
+VERSION="6.12_WIP"
HOMEPAGE="http://www.cgsecurity.org"
-DOWNLOAD="http://www.cgsecurity.org/testdisk-6.11.tar.bz2"
-MD5SUM="11f8fe95dcd190b69b782efa65b29ba1"
+DOWNLOAD="http://www.cgsecurity.org/testdisk-6.12-WIP.tar.bz2"
+MD5SUM="ed7bcfee065982cd2c831c7aff897707"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Michales Michaloudes"