summaryrefslogtreecommitdiff
path: root/libraries/perl-File-Slurp/perl-File-Slurp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/perl-File-Slurp/perl-File-Slurp.SlackBuild')
-rw-r--r--libraries/perl-File-Slurp/perl-File-Slurp.SlackBuild7
1 files changed, 3 insertions, 4 deletions
diff --git a/libraries/perl-File-Slurp/perl-File-Slurp.SlackBuild b/libraries/perl-File-Slurp/perl-File-Slurp.SlackBuild
index 62bd71240e..b6a51df4e6 100644
--- a/libraries/perl-File-Slurp/perl-File-Slurp.SlackBuild
+++ b/libraries/perl-File-Slurp/perl-File-Slurp.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=perl-File-Slurp
SRCNAM=File-Slurp
VERSION=9999.13
-ARCH=noarch
+ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,8 +60,7 @@ gzip -9 $PKG/usr/man/man3/* 2> /dev/null
# Remove empty directory hierarchy
rmdir --parents \
$PKG/usr/lib/perl5/vendor_perl/5.10.0/i486-linux-thread-multi/auto/File/Slurp/ \
- $PKG/usr/lib/perl5/5.10.0/i486-linux-thread-multi \
- 2>/dev/null || true
+ $PKG/usr/lib/perl5/5.10.0/i486-linux-thread-multi 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
@@ -72,4 +71,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}