summaryrefslogtreecommitdiff
path: root/libraries/liblinebreak/liblinebreak.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-05-13 00:31:00 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:31:00 +0200
commit94b1fb1adea185728bcbab0028821f1e92105b41 (patch)
treebeb2e3c6c34838644df570d8832494a8bd8f9090 /libraries/liblinebreak/liblinebreak.SlackBuild
parente37ea60d5f958eec0fe71189e7cc1e703f050a14 (diff)
downloadslackbuilds-94b1fb1adea185728bcbab0028821f1e92105b41.tar.gz
libraries/liblinebreak: Updated for version 2.0
Diffstat (limited to 'libraries/liblinebreak/liblinebreak.SlackBuild')
-rw-r--r--libraries/liblinebreak/liblinebreak.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/libraries/liblinebreak/liblinebreak.SlackBuild b/libraries/liblinebreak/liblinebreak.SlackBuild
index 6e8c5e111b..aa398d56d9 100644
--- a/libraries/liblinebreak/liblinebreak.SlackBuild
+++ b/libraries/liblinebreak/liblinebreak.SlackBuild
@@ -2,10 +2,12 @@
# Slackware build script for liblinebreak
-# Written by Audrius Kažukauskas <audrius@neutrino.lt>
+# Originally written by Audrius Kazukauskas <audrius@neutrino.lt>
+# Maintained as of version 2.0 by Niels Horn <niels.horn@gmail.com>
+# Revision date: 2010/01/28
PRGNAM=liblinebreak
-VERSION=${VERSION:-1.1.1}
+VERSION=${VERSION:-2.0}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -17,10 +19,13 @@ OUTPUT=${OUTPUT:-/tmp}
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
@@ -41,6 +46,7 @@ find . \
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--build=$ARCH-slackware-linux
make
@@ -54,4 +60,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}