summaryrefslogtreecommitdiff
path: root/libraries/libwhisker2/libwhisker2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libwhisker2/libwhisker2.SlackBuild')
-rw-r--r--libraries/libwhisker2/libwhisker2.SlackBuild19
1 files changed, 12 insertions, 7 deletions
diff --git a/libraries/libwhisker2/libwhisker2.SlackBuild b/libraries/libwhisker2/libwhisker2.SlackBuild
index 408cb3a122..c4aefaa598 100644
--- a/libraries/libwhisker2/libwhisker2.SlackBuild
+++ b/libraries/libwhisker2/libwhisker2.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for libwhisker2
#
-# Copyright 2009-2010 Marco Bonetti <sid77@slackware.it>
+# Copyright 2010-2011 Marco Bonetti <sid77@slackware.it>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libwhisker2
-VERSION=2.4
+VERSION=2.5
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -32,15 +32,18 @@ CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+
DOCS="CHANGES DISTRIBUTION KNOWNBUGS LICENSE README docs scripts"
-# Not used at all :-/
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
@@ -54,7 +57,7 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
# Patch Makefiles
-zcat $CWD/Makefiles.patch.gz | patch -p1
+cat $CWD/Makefiles.patch | patch -p1
chown -R root:root .
find . \
@@ -69,8 +72,10 @@ make DESTDIR=$PKG \
install
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man
@@ -91,4 +96,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}