aboutsummaryrefslogtreecommitdiff
path: root/audio/jack-tools/jack-tools.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/jack-tools/jack-tools.SlackBuild')
-rw-r--r--audio/jack-tools/jack-tools.SlackBuild19
1 files changed, 17 insertions, 2 deletions
diff --git a/audio/jack-tools/jack-tools.SlackBuild b/audio/jack-tools/jack-tools.SlackBuild
index ade1c9e96e1ab..918ddd246339b 100644
--- a/audio/jack-tools/jack-tools.SlackBuild
+++ b/audio/jack-tools/jack-tools.SlackBuild
@@ -4,10 +4,18 @@
# Written by B. Watson (yalhcru@gmail.com)
+# 20151110 bkw:
+# - Updated for 20141211. This is the date of the latest darcs
+# commit. Note that the c-common/ in the source tarball is the
+# old one (from my jack-tools-20130616.tar.gz), since jack-tools
+# won't compile against the latest c-common. Only jack-scope
+# and jack-play have changed.
+# - Add capability stuff.
+
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=jack-tools
-VERSION=${VERSION:-20130616}
+VERSION=${VERSION:-20141211}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,7 +63,7 @@ mkdir -p $PKG/usr/bin $PKG/usr/include
make install prefix=$PKG/usr
strip $PKG/usr/bin/*
-# man pages generated from *.text asciidoc files, then manually edited
+# man pages generated from *.ad asciidoc files, then manually edited
# to clean up the formatting.
mkdir -p $PKG/usr/man/man1
for page in $CWD/man/*.1; do
@@ -69,5 +77,12 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+# Only add capability stuff if not disabled:
+if [ "${SETCAP:-yes}" = "yes" ]; then
+ cat $CWD/setcap.sh >> $PKG/install/doinst.sh
+ chown root:audio $PKG/usr/bin/*
+ chmod 0750 $PKG/usr/bin/*
+fi
+
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}