summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author slakmagik2011-01-29 04:55:53 +0100
committer Robby Workman2011-03-01 15:53:16 +0100
commitad832f6937e4db3a573dfa01fa6e909da9ad6e8d (patch)
treecf5c2b924e9db5cb9cf3a1b7bf7d68be31c98540
parent5663f7752237092d9b9d3afa3ccd48517dd199c0 (diff)
downloadslackbuilds-ad832f6937e4db3a573dfa01fa6e909da9ad6e8d.tar.gz
audio/shorten: Miscellaneous cleanups
Allow VERSION to be passed to the script. Remove unneeded comments and configure flags. Use 'install-strip'. Generalize man page handling. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--audio/shorten/shorten.SlackBuild12
1 files changed, 3 insertions, 9 deletions
diff --git a/audio/shorten/shorten.SlackBuild b/audio/shorten/shorten.SlackBuild
index 806600299d..b312fceaee 100644
--- a/audio/shorten/shorten.SlackBuild
+++ b/audio/shorten/shorten.SlackBuild
@@ -5,16 +5,14 @@
# Released under the WTFPL
PRGNAM=shorten
-VERSION=3.6.1
+VERSION=${VERSION:-3.6.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -46,7 +44,6 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -58,19 +55,16 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man
make
-make DESTDIR=$PKG install
+make DESTDIR=$PKG install-strip
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a [ACINR]* $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