diff --git a/audio/sbagen/README b/audio/sbagen/README index d198947dd6..7c9cc6e0e7 100644 --- a/audio/sbagen/README +++ b/audio/sbagen/README @@ -3,16 +3,12 @@ May be used to generate sounds that entrain the brain's waves to oscillate at selected frequencies to aid in relaxation, lucid dreaming, meditation, clear thought, out-of-body experiences and more. -NOTE: SBaGen can run script sequences with mp3 and ogg backgrounds -using reserved libraries (libmad.so/libvorbisidec.so.1). +NOTE: SBaGen can run script sequences with mp3 and ogg backgrounds. To use this, pass NONFREE=yes option to SlackBuild script (requires libvorbisidec). -SBaGen is run only with OSS. Use 'sbagen-oss' to play script sequences. READ the following documents to understand how this program works: * /usr/share/doc/sbagen-VERSION/theory.txt * /usr/share/doc/sbagen-VERSION/theory2.txt * /usr/share/doc/sbagen-VERSION/SBAGEN.txt - For more information about Binaural Beats and SBaGen, visit the official page. - USE AND EXPERIMENT WITH THIS UTILITY AT YOUR OWN RISK! diff --git a/audio/sbagen/sbagen.SlackBuild b/audio/sbagen/sbagen.SlackBuild index c44352cf04..ad3d02e1c4 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 +# Copyright 2016 Ruan K. F # 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