|
|
@ -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 |
|
|
|