From 8181dfcc4f3f4be9cfdf37d1ea2fe4de17d4d0b5 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Mon, 28 Oct 2013 17:19:11 +0100 Subject: audio/chuck: Use the same name for script and package. Cleanups Signed-off-by: Matteo Bernardini --- audio/chuck/chuck.SlackBuild | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'audio/chuck/chuck.SlackBuild') diff --git a/audio/chuck/chuck.SlackBuild b/audio/chuck/chuck.SlackBuild index 0f3235b49d1f4..815714a440d56 100644 --- a/audio/chuck/chuck.SlackBuild +++ b/audio/chuck/chuck.SlackBuild @@ -8,8 +8,6 @@ VERSION=${VERSION:-1.3.1.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -SOUNDENGINE=${SOUNDENGINE:-alsa} - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -37,6 +35,8 @@ else LIBDIRSUFFIX="" fi +SOUNDENGINE=${SOUNDENGINE:-alsa} + set -e rm -rf $PKG @@ -52,9 +52,11 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Set our CFLAGS +sed -i "s|-O3|$SLKCFLAGS|" makefile* + make linux-$SOUNDENGINE -mkdir -p $PKG/usr/bin -cp $PRGNAM $PKG/usr/bin/$PRGNAM-$SOUNDENGINE # binaries can co-exist. +install -m 0755 -D $PRGNAM $PKG/usr/bin/$PRGNAM-$SOUNDENGINE # binaries can co-exist. find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -71,4 +73,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/${PRGNAM}_${SOUNDENGINE}-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/${PRGNAM}-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} -- cgit v1.2.3