diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2013-10-28 17:19:11 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-10-29 20:12:25 -0500 |
commit | 8181dfcc4f3f4be9cfdf37d1ea2fe4de17d4d0b5 (patch) | |
tree | 1becdb470b92495b9bce7dd166c428bf0e01f062 /audio/chuck/chuck.SlackBuild | |
parent | 1e726bf44cd7809cd9e43761a86fa837e796ef1c (diff) | |
download | slackbuilds-8181dfcc4f3f4be9cfdf37d1ea2fe4de17d4d0b5.tar.gz |
audio/chuck: Use the same name for script and package.
Cleanups
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/chuck/chuck.SlackBuild')
-rw-r--r-- | audio/chuck/chuck.SlackBuild | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/audio/chuck/chuck.SlackBuild b/audio/chuck/chuck.SlackBuild index 0f3235b49d..815714a440 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} |