summaryrefslogtreecommitdiff
path: root/audio/horgand/horgand.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/horgand/horgand.SlackBuild')
-rw-r--r--audio/horgand/horgand.SlackBuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/audio/horgand/horgand.SlackBuild b/audio/horgand/horgand.SlackBuild
index e2b26c7302..468ca3a3da 100644
--- a/audio/horgand/horgand.SlackBuild
+++ b/audio/horgand/horgand.SlackBuild
@@ -4,9 +4,11 @@
# Written by B. Watson (yalhcru@gmail.com)
+# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details.
+
PRGNAM=horgand
VERSION=${VERSION:-1.14}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -84,5 +86,13 @@ 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
+ cat $CWD/setcap.sh >> $PKG/install/doinst.sh
+ # Only allow execution by audio group
+ chown root:audio $PKG/usr/bin/$PRGNAM
+ chmod 0750 $PKG/usr/bin/$PRGNAM
+fi
+
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}