summaryrefslogtreecommitdiff
path: root/audio/horgand/horgand.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2013-01-01 13:19:41 -0500
committerdsomero <xgizzmo@slackbuilds.org>2013-01-01 13:19:41 -0500
commit5359826b7bfef215dc68460c470579dde78f7c5d (patch)
tree8e00136ec81df090f32cdae851232b238fb97955 /audio/horgand/horgand.SlackBuild
parent0f6b36715aaf00c28f1114d7c9aef68a72978c22 (diff)
downloadslackbuilds-5359826b7bfef215dc68460c470579dde78f7c5d.tar.gz
audio/horgand: License and capability support added.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
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}