summaryrefslogtreecommitdiff
path: root/system/testdisk
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
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')
-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 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
diff --git a/system/testdisk/testdisk.info b/system/testdisk/testdisk.info
index 42a68f2c89..b40f20f0e0 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"