Browse Source

ap/testdisk: Upgraded to testdisk-7.1.

current-20191101
parent
commit
00d195c01e
  1. 5
      ap/testdisk/doinst.sh
  2. 1
      ap/testdisk/testdisk-7.0.tar.bz2.sha1
  3. 1
      ap/testdisk/testdisk-7.1.tar.bz2.sha256
  4. 15
      ap/testdisk/testdisk.SlackBuild

5
ap/testdisk/doinst.sh

@ -0,0 +1,5 @@
#!/bin/sh
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1
fi

1
ap/testdisk/testdisk-7.0.tar.bz2.sha1

@ -1 +0,0 @@
3badfd88fea3d785f0d14ba0368866a085041c50 testdisk-7.0.tar.bz2

1
ap/testdisk/testdisk-7.1.tar.bz2.sha256

@ -0,0 +1 @@
1413c47569e48c5b22653b943d48136cb228abcbd6f03da109c4df63382190fe testdisk-7.1.tar.bz2

15
ap/testdisk/testdisk.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009,2015 Damien Goutte-Gattat
# Copyright (C) 2009,2015,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,7 +27,7 @@
# Source package infos
NAMESRC=${NAMESRC:-testdisk}
VERSION=${VERSION:-7.0}
VERSION=${VERSION:-7.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-http://www.cgsecurity.org/$ARCHIVE}
@ -74,7 +74,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -86,18 +86,17 @@ CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--mandir=/usr/man
--mandir=/usr/man \
--docdir=/usr/doc/$NAME
make -j $JOBS
make install-strip DESTDIR=$PKG
# Compress man and info pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
mv $PKG/usr/share/doc $PKG/usr
# Copy slack-desc file
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh
# Package the tree
cd $PKG

Loading…
Cancel
Save