summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaditya Bagga <aaditya_gnulinux@zoho.com>2015-04-25 19:28:03 +0530
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-04-25 21:24:47 +0700
commit3c27715c062433eec32f8de2eeb408cd40670609 (patch)
treea5e544972a978624bd3681460dc5bcf1e6976acc
parent8380d886c88ebcdd5494446b4d219a30d72c790a (diff)
downloadslackbuilds-3c27715c062433eec32f8de2eeb408cd40670609.tar.gz
system/testdisk: Updated for version 7.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/testdisk/doinst.sh11
-rw-r--r--system/testdisk/testdisk.SlackBuild7
-rw-r--r--system/testdisk/testdisk.info6
3 files changed, 17 insertions, 7 deletions
diff --git a/system/testdisk/doinst.sh b/system/testdisk/doinst.sh
new file mode 100644
index 0000000000..bd8f3bab51
--- /dev/null
+++ b/system/testdisk/doinst.sh
@@ -0,0 +1,11 @@
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
diff --git a/system/testdisk/testdisk.SlackBuild b/system/testdisk/testdisk.SlackBuild
index 867e4295de..222fd76c0b 100644
--- a/system/testdisk/testdisk.SlackBuild
+++ b/system/testdisk/testdisk.SlackBuild
@@ -4,7 +4,7 @@
# Originally Written by Michales Michaloudes korgie@gmail.com
# Copyright 2011 Grigorios Bouzakis <grbzks@imap.cc>
-# Copyright 2014 Aaditya Bagga <aaditya_gnulinux@zoho.com>
+# Copyright 2014-2015 Aaditya Bagga <aaditya_gnulinux@zoho.com>
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for any purpose
@@ -23,7 +23,7 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=testdisk
-VERSION=${VERSION:-6.14}
+VERSION=${VERSION:-7.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -94,12 +94,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
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
-mv $PKG/usr/share/doc $PKG/usr ; rmdir $PKG/usr/share
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/testdisk/testdisk.info b/system/testdisk/testdisk.info
index 450c456ee2..7114b414fb 100644
--- a/system/testdisk/testdisk.info
+++ b/system/testdisk/testdisk.info
@@ -1,8 +1,8 @@
PRGNAM="testdisk"
-VERSION="6.14"
+VERSION="7.0"
HOMEPAGE="http://www.cgsecurity.org"
-DOWNLOAD="http://www.cgsecurity.org/testdisk-6.14.tar.bz2"
-MD5SUM="b1f0edabc9035e9ec9c8e0a95059ff3f"
+DOWNLOAD="http://www.cgsecurity.org/testdisk-7.0.tar.bz2"
+MD5SUM="f0cfe4ca9dd35f2878b2704251665e9f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""