diff options
author | slakmagik <jsun@freeshell.org> | 2010-05-12 17:37:22 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:37:22 +0200 |
commit | 0635b805f410ad9aefbccbd7fbab2bc3883ffcdb (patch) | |
tree | 85b6e0bb95c4e7b87e1cfe947f001e824d16d933 /audio/shntool/shntool.SlackBuild | |
parent | 9d487e8579fb7bb183f61a3cb7126099f00e6729 (diff) |
audio/shntool: Updated for version 3.0.8
Diffstat (limited to 'audio/shntool/shntool.SlackBuild')
-rw-r--r-- | audio/shntool/shntool.SlackBuild | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/audio/shntool/shntool.SlackBuild b/audio/shntool/shntool.SlackBuild index 4223211fc387f..dc2199eb45300 100644 --- a/audio/shntool/shntool.SlackBuild +++ b/audio/shntool/shntool.SlackBuild @@ -5,9 +5,9 @@ # Released under the WTFPL PRGNAM=shntool -VERSION=3.0.8 +VERSION=${VERSION:-3.0.8} ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -19,6 +19,8 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi set -e @@ -40,20 +42,24 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --mandir=/usr/man + --mandir=/usr/man \ + --build=$ARCH-slackware-linux make make DESTDIR=$PKG install ( 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 ) +gzip -9 $PKG/usr/man/man1/$PRGNAM.1 + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a [ACINR]* doc/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -gzip -9 $PKG/usr/man/man1/$PRGNAM.1 mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |