diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-24 14:16:14 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-24 16:10:23 -0500 |
commit | be9907d9f46efc286d1f64529a9804e6c2de4e8b (patch) | |
tree | 8399fe8f27ce07e6ef8999835e99527ec0f701dc | |
parent | b92e6f4070e8d06cd23b7a01b9e39333fc96464d (diff) |
libraries/lame: Miscellaneous cleanups.
-rw-r--r-- | libraries/lame/lame.SlackBuild | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/libraries/lame/lame.SlackBuild b/libraries/lame/lame.SlackBuild index 978c13421fe1d..1ba662a19e577 100644 --- a/libraries/lame/lame.SlackBuild +++ b/libraries/lame/lame.SlackBuild @@ -25,10 +25,19 @@ PRGNAM=lame VERSION=3.98.4 -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -77,17 +86,12 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make pkgdocdir=/usr/doc/$PRGNAM-$VERSION -make install \ - pkgdocdir=/usr/doc/$PRGNAM-$VERSION \ - DESTDIR=$PKG +make install pkgdocdir=/usr/doc/$PRGNAM-$VERSION DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a API COPYING ChangeLog DEFINES HACKING INSTALL* LICENSE README* \ |