aboutsummaryrefslogtreecommitdiff
path: root/libraries/perl-test-number-delta/perl-test-number-delta.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/perl-test-number-delta/perl-test-number-delta.SlackBuild')
-rw-r--r--libraries/perl-test-number-delta/perl-test-number-delta.SlackBuild22
1 files changed, 12 insertions, 10 deletions
diff --git a/libraries/perl-test-number-delta/perl-test-number-delta.SlackBuild b/libraries/perl-test-number-delta/perl-test-number-delta.SlackBuild
index 6b37afa9aae0a..bfbda0c8b9013 100644
--- a/libraries/perl-test-number-delta/perl-test-number-delta.SlackBuild
+++ b/libraries/perl-test-number-delta/perl-test-number-delta.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=perl-test-number-delta
SRCNAM=Test-Number-Delta
VERSION=1.03
-ARCH=noarch
+ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -34,20 +34,20 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="Changes INSTALL LICENSE README Todo"
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $SRCNAM-$VERSION
-tar -xzvf $CWD/$SRCNAM-$VERSION.tar.gz || exit 1
-cd $SRCNAM-$VERSION || exit 1
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-perl Makefile.PL || exit 1
-make || exit 1
-make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1
+perl Makefile.PL
+make
+make install INSTALLDIRS=vendor DESTDIR=$PKG
mv $PKG/usr/share/man $PKG/usr && rm -rf $PKG/usr/share
gzip -9 $PKG/usr/man/man3/* 2> /dev/null
@@ -62,7 +62,9 @@ gzip -9 $PKG/usr/man/man3/* 2> /dev/null
find $PKG -depth -type d -empty -exec rm -rf {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ Changes INSTALL LICENSE README Todo \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/*
@@ -70,4 +72,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}