aboutsummaryrefslogtreecommitdiff
path: root/system/testdisk
diff options
context:
space:
mode:
authorAaditya Bagga <aaditya_gnulinux@zoho.com>2022-08-16 00:31:57 +0530
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-08-20 09:14:21 +0700
commit1153fb25e3b697c0f148e1cf1bcc2b0dd9b6a8d9 (patch)
tree167bb5ebb0b07ff27a06dfa183289b086dfd00ac /system/testdisk
parent5adc25164241f7313600699fc5702d9ee34fd9a1 (diff)
system/testdisk: Updated for version 7.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/testdisk')
-rw-r--r--system/testdisk/README5
-rw-r--r--system/testdisk/doinst.sh2
-rw-r--r--system/testdisk/testdisk.SlackBuild14
-rw-r--r--system/testdisk/testdisk.info6
4 files changed, 13 insertions, 14 deletions
diff --git a/system/testdisk/README b/system/testdisk/README
index 0e15d7fff8ece..0d1d17214645e 100644
--- a/system/testdisk/README
+++ b/system/testdisk/README
@@ -9,6 +9,9 @@ PhotoRec is file data recovery software designed to recover lost files
including video, documents and archives from Hard Disks and CDRom and
lost pictures from digital camera memory.
-If you want to enable the use of sudo run the script with SUDO=true
+To enable the use of sudo, run the script with SUDO=true, ie:
+SUDO=true ./testdisk.SlackBuild
libewf is an optional dependency.
+
+Website - https://www.cgsecurity.org/wiki/TestDisk \ No newline at end of file
diff --git a/system/testdisk/doinst.sh b/system/testdisk/doinst.sh
index d8b0d0d87bbbc..65c7e2eeb9aa5 100644
--- a/system/testdisk/doinst.sh
+++ b/system/testdisk/doinst.sh
@@ -1,4 +1,3 @@
-
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
@@ -8,4 +7,3 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
-
diff --git a/system/testdisk/testdisk.SlackBuild b/system/testdisk/testdisk.SlackBuild
index 4968879bfa6cd..1910c457e4b1c 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-2015 Aaditya Bagga <aaditya_gnulinux@zoho.com>
+# Copyright 2014-2022 Aaditya Bagga <aaditya_gnulinux@zoho.com>
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for any purpose
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=testdisk
-VERSION=${VERSION:-7.0}
+VERSION=${VERSION:-7.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -64,8 +61,6 @@ else
LIBDIRSUFFIX=""
fi
-DOCS="COPYING INFO"
-
set -e
rm -rf $PKG
@@ -81,7 +76,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-[ "$SUDO" = "true" ] && ENABLE_SUDO="--enable-sudo"
+[ "${SUDO:-false}" != "false" ] && ENABLE_SUDO="--enable-sudo"
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -104,6 +99,9 @@ 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
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING NEWS README.md INFO THANKS AUTHORS \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/system/testdisk/testdisk.info b/system/testdisk/testdisk.info
index 04b09727be6de..36bb5de08e7cf 100644
--- a/system/testdisk/testdisk.info
+++ b/system/testdisk/testdisk.info
@@ -1,8 +1,8 @@
PRGNAM="testdisk"
-VERSION="7.0"
+VERSION="7.1"
HOMEPAGE="https://www.cgsecurity.org"
-DOWNLOAD="https://www.cgsecurity.org/testdisk-7.0.tar.bz2"
-MD5SUM="f0cfe4ca9dd35f2878b2704251665e9f"
+DOWNLOAD="https://www.cgsecurity.org/testdisk-7.1.tar.bz2"
+MD5SUM="57d78ffee1c076ef4cf541a74f8d52d4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""