aboutsummaryrefslogtreecommitdiff
path: root/libraries/libnxml/libnxml.SlackBuild
diff options
context:
space:
mode:
authorKristaps Esterlins <esterlins@gmail.com>2010-05-13 00:31:25 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:31:25 +0200
commite014c6647c23d8db4ec5f23cb4de9d055f4eacff (patch)
tree08e5ae05ff27e7d77e0d0e3bf17c1f8a383578ae /libraries/libnxml/libnxml.SlackBuild
parent576c24c9bf0c8f48b34088aee528aa4e596ddad3 (diff)
libraries/libnxml: Updated for version 0.18.3
Diffstat (limited to 'libraries/libnxml/libnxml.SlackBuild')
-rw-r--r--libraries/libnxml/libnxml.SlackBuild18
1 files changed, 12 insertions, 6 deletions
diff --git a/libraries/libnxml/libnxml.SlackBuild b/libraries/libnxml/libnxml.SlackBuild
index 9b2726e84bbf9..1ea7b92bdbd82 100644
--- a/libraries/libnxml/libnxml.SlackBuild
+++ b/libraries/libnxml/libnxml.SlackBuild
@@ -3,11 +3,11 @@
# Slackware build script for libnxml
# Written by Kristaps Esterlins <esterlinsh[at]gmail.com>
-PRGNAM=libnxml
+PRGNAM=libnxml
VERSION=0.18.3
-ARCH=${ARCH:-i486}
+ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
+TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
@@ -16,10 +16,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 +44,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -52,8 +56,10 @@ make
make install DESTDIR=$PKG
( 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
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -65,4 +71,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}