summaryrefslogtreecommitdiff
path: root/libraries/perl-digest-sha1/perl-digest-sha1.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/perl-digest-sha1/perl-digest-sha1.SlackBuild')
-rw-r--r--libraries/perl-digest-sha1/perl-digest-sha1.SlackBuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/libraries/perl-digest-sha1/perl-digest-sha1.SlackBuild b/libraries/perl-digest-sha1/perl-digest-sha1.SlackBuild
index eb0dd2bd33..acdd446039 100644
--- a/libraries/perl-digest-sha1/perl-digest-sha1.SlackBuild
+++ b/libraries/perl-digest-sha1/perl-digest-sha1.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for perl-digest-sha1
-# Copyright 2008 LukenShiro <lukenshiro@ngi.it>
+# Copyright 2008-2009 LukenShiro <lukenshiro@ngi.it>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
PRGNAM=perl-digest-sha1
SRC_PRGNAM=Digest-SHA1
-VERSION=${VERSION:-2.11}
+VERSION=${VERSION:-2.12}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -39,12 +39,15 @@ DOCFILES="fip180-1.* Changes README"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
-
+
set -e # Exit on most errors
rm -rf $PKG
@@ -80,9 +83,10 @@ find $PKG -depth -type d -empty -exec rm -rf {} \;
# strip libraries
( cd $PKG
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
-
+
# compress man pages
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
@@ -97,4 +101,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}