diff options
author | B. Watson <yalhcru@gmail.com> | 2012-12-29 08:03:28 +0100 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-12-29 08:03:45 +0100 |
commit | 5d79504e6d6a7f51079edaa8fa80a7b21515097b (patch) | |
tree | 80a5be3171819c3e864cbd221f7a88c103d4a7b4 /audio/bristol/bristol.SlackBuild | |
parent | d9050cd45cfe4c1889e1926ebb056b9fde5dc584 (diff) | |
download | slackbuilds-5d79504e6d6a7f51079edaa8fa80a7b21515097b.tar.gz |
audio/bristol: Updated for version 0.60.10.
Added .desktop, icon, license, capability support
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/bristol/bristol.SlackBuild')
-rw-r--r-- | audio/bristol/bristol.SlackBuild | 28 |
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} |