diff options
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 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} |