summaryrefslogtreecommitdiff
path: root/audio/bristol/bristol.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/bristol/bristol.SlackBuild')
-rw-r--r--audio/bristol/bristol.SlackBuild28
1 files changed, 25 insertions, 3 deletions
diff --git a/audio/bristol/bristol.SlackBuild b/audio/bristol/bristol.SlackBuild
index 1df9947eeb..c01512bd6e 100644
--- a/audio/bristol/bristol.SlackBuild
+++ b/audio/bristol/bristol.SlackBuild
@@ -2,11 +2,13 @@
# Slackware build script for bristol
-# Written by Zbigniew Baniewski, zb@ispid.com.pl (email no longer valid?)
+# Written by Zbigniew Baniewski, <zbigniew.baniewski@gmail.com>
# Modified by B. Watson, yalhcru@gmail.com
+# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details.
+
PRGNAM=bristol
-VERSION=0.60.8
+VERSION=0.60.10
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,7 +45,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/${PRGNAM}-${VERSION}.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -79,8 +81,28 @@ install -m0644 AUTHORS COPYING COPYING.GPL NEWS README ChangeLog \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# icon rendered from bicon.svg
+mkdir -p $PKG/usr/share/pixmaps
+cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
+
+# .desktop written for this SlackBuild
+mkdir -p $PKG/usr/share/applications
+cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+# Only add capability stuff if not disabled:
+if [ "${SETCAP:-yes}" = "yes" ]; then
+ PROGS="$PRGNAM brighton bristoljackstats"
+ cat $CWD/setcap.sh >> $PKG/install/doinst.sh
+ # Only allow execution by audio group
+ for file in $PROGS; do
+ chown root:audio $PKG/usr/bin/$file
+ chmod 0750 $PKG/usr/bin/$file
+ done
+fi
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}