aboutsummaryrefslogtreecommitdiff
path: root/audio/shntool/shntool.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/shntool/shntool.SlackBuild')
-rw-r--r--audio/shntool/shntool.SlackBuild9
1 files changed, 2 insertions, 7 deletions
diff --git a/audio/shntool/shntool.SlackBuild b/audio/shntool/shntool.SlackBuild
index 7e15e862b75c2..f3e3093114932 100644
--- a/audio/shntool/shntool.SlackBuild
+++ b/audio/shntool/shntool.SlackBuild
@@ -9,12 +9,10 @@ VERSION=${VERSION:-3.0.10}
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
@@ -61,12 +59,9 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
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
-
-gzip -9 $PKG/usr/man/man1/$PRGNAM.1
+find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a [ACINR]* doc/* $PKG/usr/doc/$PRGNAM-$VERSION