diff options
Diffstat (limited to 'audio/sbagen/sbagen.SlackBuild')
-rw-r--r-- | audio/sbagen/sbagen.SlackBuild | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/audio/sbagen/sbagen.SlackBuild b/audio/sbagen/sbagen.SlackBuild index c44352cf0439a..ad3d02e1c4098 100644 --- a/audio/sbagen/sbagen.SlackBuild +++ b/audio/sbagen/sbagen.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for sbagen -# Copyright 2015 Ruan K. F <ruan.klein@gmail.com> +# Copyright 2016 Ruan K. F <ruan.klein@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,10 +24,11 @@ PRGNAM=sbagen VERSION=${VERSION:-1.4.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} DOCS="COPYING.txt ChangeLog.txt README.txt SBAGEN.txt TODO.txt focus.txt focus2.txt holosync.txt theory.txt theory2.txt wave.txt" +BINNAME=${PRGNAM}-bin # For MP3 and OGG support, set this to "yes" NONFREE=${NONFREE:-no} @@ -44,11 +45,6 @@ if [ -z "$ARCH" ]; then esac fi -[[ ! $ARCH =~ ^(i486|i686|x86_64)$ ]] && { - echo "Sorry, this script no support the $ARCH architecture." >&2 - exit 1 -} - CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -92,7 +88,7 @@ else fi # build -gcc $OPT $LIBS sbagen.c -o sbagen || exit 1; +gcc $OPT $LIBS sbagen.c -o $BINNAME || exit 1; mkdir -p $PKG/usr/{bin,doc/$PRGNAM-$VERSION,share/$PRGNAM/src} cp -ar $DOCS examples \ @@ -102,9 +98,9 @@ cp -ar scripts river{1,2}.ogg \ cp -ar *.c mk-* libs \ $PKG/usr/share/$PRGNAM/src -install -m0755 -o 0:0 $CWD/${PRGNAM}-oss $PKG/usr/bin -install -m0755 -o 0:0 $PRGNAM $PKG/usr/bin/$PRGNAM - +install -m0755 -o 0:0 $CWD/$PRGNAM $PKG/usr/bin +install -m0755 -o 0:0 $BINNAME $PKG/usr/bin/$BINNAME + cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |