summaryrefslogtreecommitdiff
path: root/libraries/liboop/liboop.SlackBuild
diff options
context:
space:
mode:
authorMenno E. Duursma <druiloor@zonnet.nl>2010-05-13 00:31:29 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:31:29 +0200
commit0ff7611498057ccf5849f2985fc0bf43cb65b984 (patch)
treea399b36e5b1befd40194bf08ae5f6659120d3544 /libraries/liboop/liboop.SlackBuild
parente31b0bbc42be2bcfc0346e53252129f6fab541fa (diff)
downloadslackbuilds-0ff7611498057ccf5849f2985fc0bf43cb65b984.tar.gz
libraries/liboop: Updated for version 1.0
Diffstat (limited to 'libraries/liboop/liboop.SlackBuild')
-rw-r--r--libraries/liboop/liboop.SlackBuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/libraries/liboop/liboop.SlackBuild b/libraries/liboop/liboop.SlackBuild
index ff0d604cd8..2060e8a7e7 100644
--- a/libraries/liboop/liboop.SlackBuild
+++ b/libraries/liboop/liboop.SlackBuild
@@ -21,10 +21,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
@@ -43,6 +46,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -54,13 +58,8 @@ make
make install DESTDIR=$PKG
( cd $PKG || exit 1
- find . -type f \
- | xargs file \
- | grep -e "executable"
- -e "shared object" \
- | grep ELF \
- | cut -f 1 -d : \
- | xargs strip --strip-unneeded 2> /dev/null
+ find . -type f | xargs file | grep -e "executable" -e "shared object" \
+ | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -72,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}