summaryrefslogtreecommitdiffstats
path: root/graphics/gscan2pdf/gscan2pdf.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/gscan2pdf/gscan2pdf.SlackBuild')
-rw-r--r--graphics/gscan2pdf/gscan2pdf.SlackBuild23
1 files changed, 17 insertions, 6 deletions
diff --git a/graphics/gscan2pdf/gscan2pdf.SlackBuild b/graphics/gscan2pdf/gscan2pdf.SlackBuild
index e64600333b..6cf90eaa5e 100644
--- a/graphics/gscan2pdf/gscan2pdf.SlackBuild
+++ b/graphics/gscan2pdf/gscan2pdf.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for gscanpdf
-# Copyright 2020 M.A.Begue mab974@gmail.com
+# Copyright 2020 M.A.Begue mab974@misouk.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,12 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-## !!!!!!!!! 'make test' commented out !!!!!!!!
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gscan2pdf
-VERSION=${VERSION:-2.6.3}
+VERSION=${VERSION:-2.13.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
@@ -39,7 +40,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -80,6 +88,9 @@ perl Makefile.PL \
INSTALLVENDORMAN1DIR=/usr/man/man1 \
INSTALLVENDORMAN3DIR=/usr/man/man3
make
+if [ "${MAKETEST:-no}" = "yes" ]; then
+ make test
+fi
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -99,4 +110,4 @@ 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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE