summaryrefslogtreecommitdiff
path: root/libraries/libwhisker2/libwhisker2.SlackBuild
diff options
context:
space:
mode:
authorMarco Bonetti <sid77@slackware.it>2010-05-13 00:32:11 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:32:11 +0200
commit5e3ea9bb43d9458f6b464272cf7ccc97c4611a22 (patch)
treea1791a61c96f2f8806e44edc80f3f372e1f59d8c /libraries/libwhisker2/libwhisker2.SlackBuild
parent1886b8fd55f884bfd9e17c036ae778bc1b5f928a (diff)
downloadslackbuilds-5e3ea9bb43d9458f6b464272cf7ccc97c4611a22.tar.gz
libraries/libwhisker2: Updated for version 2.5
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}