audio/shntool: Updated for version 3.0.8

This commit is contained in:
slakmagik 2010-05-12 17:37:22 +02:00 committed by Robby Workman
parent 9d487e8579
commit 0635b805f4
3 changed files with 16 additions and 7 deletions

View file

@ -8,3 +8,6 @@ well as aid other programmers in developing new functionality. The
distribution archive contains a file named 'modules.howto' that
describes how to create a new mode or format module, for those so
inclined.
If you wish to have shntool support shorten, you should install the
shorten (also available from SlackBuilds.org) first.

View file

@ -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

View file

@ -5,4 +5,4 @@ DOWNLOAD="http://shnutils.freeshell.org/shntool/dist/src/shntool-3.0.8.tar.gz"
MD5SUM="916a5a8625288a5f9edc2ef3567f51d8"
MAINTAINER="slakmagik"
EMAIL="jsun@freeshell.org"
APPROVED="dsomero"
APPROVED="rworkman"