diff options
author | Marcel Saegebarth <marc@mos6581.de> | 2014-10-18 05:24:08 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-10-18 05:24:08 +0700 |
commit | e737445e63ab071adfcd2150ac5a1d81d756515b (patch) | |
tree | 35a0b46c6ea756ad97b17b276f40ceb02a2c223b /audio/jack2/jack2.SlackBuild | |
parent | 7a801a798694eead67f03042f98bda7035ad24d8 (diff) |
audio/jack2: Updated for version 1.9.10 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/jack2/jack2.SlackBuild')
-rw-r--r-- | audio/jack2/jack2.SlackBuild | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/audio/jack2/jack2.SlackBuild b/audio/jack2/jack2.SlackBuild index 35c16237cf21..6bffbe08a6aa 100644 --- a/audio/jack2/jack2.SlackBuild +++ b/audio/jack2/jack2.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for jack2 # Copyright (c) 2014, Yanes Checcacci Balod <yanes@pobox.com>, Brazil +# Copyright 2014 Marcel Saegebarth <marc@mos6581.de> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,9 +24,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=jack2 -PRGNAMFILE=jack # aux var for opening file! Don't change it !!! -VERSION=${VERSION:-1.9.9.5} -BUILD=${BUILD:-2} +SRCNAM=jack +VERSION=${VERSION:-1.9.10} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -60,15 +61,15 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAMFILE-$VERSION -tar xvjf $CWD/$PRGNAMFILE-$VERSION.tar.bz2 -cd $PRGNAMFILE-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2 +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -81,7 +82,7 @@ CXXFLAGS="$SLKCFLAGS" \ --dbus \ --alsa -./waf build +./waf build ./waf install --destdir=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -96,5 +97,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/* + chmod 0750 $PKG/usr/bin/* +fi + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |