diff options
Diffstat (limited to 'system/ibam/ibam.SlackBuild')
-rw-r--r-- | system/ibam/ibam.SlackBuild | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/system/ibam/ibam.SlackBuild b/system/ibam/ibam.SlackBuild index 47276ccd5066..ad5f0b1015b2 100644 --- a/system/ibam/ibam.SlackBuild +++ b/system/ibam/ibam.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for ibam -# Copyright (c) 2008, Antonio Hernández Blas <hba.nihilismus@gmail.com> +# Copyright (c) 2008-2009 Antonio Hernández Blas <hba.nihilismus@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -22,7 +22,7 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=ibam -VERSION=${VERSION:-0.5.1} +VERSION=${VERSION:-0.5.2} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -38,6 +38,7 @@ elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -60,18 +61,19 @@ find . \ sed -i 's/^CFLAGS=-O3/CFLAGS+=/' Makefile CFLAGS="$SLKCFLAGS" make +# Install binary by hand +# This is the only binary to package so there's no +# need to worry about $LIBDIRSUFFIX +install -D -m 0755 $PRGNAM $PKG/usr/bin/$PRGNAM + ( 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 + xargs strip --strip-unneeded 2> /dev/null || true ) -# Install binary by hand -install -D -m 0755 $PRGNAM $PKG/usr/bin/$PRGNAM - # There's no manpages - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a REPORT README CHANGES $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -80,4 +82,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} |