aboutsummaryrefslogtreecommitdiff
path: root/audio/ecasound/ecasound.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/ecasound/ecasound.SlackBuild')
-rw-r--r--audio/ecasound/ecasound.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/audio/ecasound/ecasound.SlackBuild b/audio/ecasound/ecasound.SlackBuild
index 793b1c95e752b..e055db8b98c5c 100644
--- a/audio/ecasound/ecasound.SlackBuild
+++ b/audio/ecasound/ecasound.SlackBuild
@@ -7,7 +7,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=ecasound
-VERSION=${VERSION:-2.9.0}
+VERSION=${VERSION:-2.9.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -108,5 +108,13 @@ 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
+ # 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}