summaryrefslogtreecommitdiff
path: root/libraries/libshout/libshout.SlackBuild
diff options
context:
space:
mode:
authorRodney Cobb <rdc@ktabic.co.uk>2010-05-13 00:31:49 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:31:49 +0200
commit95c6c09dc8a10443d44fc8820113cbb83a6d6968 (patch)
treed0627c2eae41b9e0e49ce91c6e5cbe8dd34c48b7 /libraries/libshout/libshout.SlackBuild
parent944aa5f83d8264c21a69032d246ea8eadd178b1b (diff)
downloadslackbuilds-95c6c09dc8a10443d44fc8820113cbb83a6d6968.tar.gz
libraries/libshout: Updated for version 2.2.2
Diffstat (limited to 'libraries/libshout/libshout.SlackBuild')
-rw-r--r--libraries/libshout/libshout.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/libraries/libshout/libshout.SlackBuild b/libraries/libshout/libshout.SlackBuild
index 2ecdea9770..62125767c1 100644
--- a/libraries/libshout/libshout.SlackBuild
+++ b/libraries/libshout/libshout.SlackBuild
@@ -18,10 +18,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 # Exit on most errors
@@ -44,6 +47,7 @@ CXXFLAGS="$SLKCFLAGS" \
./configure \
--disable-static \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -54,8 +58,10 @@ make docdir=/usr/doc/$PRGNAM-$VERSION
make install docdir=/usr/doc/$PRGNAM-$VERSION 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
@@ -66,4 +72,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}