summaryrefslogtreecommitdiff
path: root/office/abook/abook.SlackBuild
diff options
context:
space:
mode:
authorMichiel van Wessem <michiel@slackbuilds.org>2010-05-13 00:38:53 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:38:53 +0200
commit23ccac9a1d4564ba95421934faec85a09922de28 (patch)
tree97bc7c93bf525a25c6c141786a68f5af3d448906 /office/abook/abook.SlackBuild
parent3320e21a95b586a02c484a3545cd28132e7d1199 (diff)
downloadslackbuilds-23ccac9a1d4564ba95421934faec85a09922de28.tar.gz
office/abook: Updated for version 0.5.6
Diffstat (limited to 'office/abook/abook.SlackBuild')
-rw-r--r--office/abook/abook.SlackBuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/office/abook/abook.SlackBuild b/office/abook/abook.SlackBuild
index 84a04aa07d..972d352bbb 100644
--- a/office/abook/abook.SlackBuild
+++ b/office/abook/abook.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for abook
# Copyright 2006 Martin Lefebvre <dadexter@gmail.com>
-# Copyright 2007-2008 Michiel van Wessem, Manchester, United Kingdom
+# Copyright 2007-2009 Michiel van Wessem, Manchester, United Kingdom
# All rights reserved.
#
@@ -36,9 +36,14 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
# Exit on most errors.
@@ -62,6 +67,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--mandir=/usr/man \
--localstatedir=/var \
@@ -83,4 +89,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}