summaryrefslogtreecommitdiff
path: root/audio/zita-rev1/zita-rev1.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/zita-rev1/zita-rev1.SlackBuild')
-rw-r--r--audio/zita-rev1/zita-rev1.SlackBuild22
1 files changed, 13 insertions, 9 deletions
diff --git a/audio/zita-rev1/zita-rev1.SlackBuild b/audio/zita-rev1/zita-rev1.SlackBuild
index 0907099299..9b3b3db832 100644
--- a/audio/zita-rev1/zita-rev1.SlackBuild
+++ b/audio/zita-rev1/zita-rev1.SlackBuild
@@ -7,7 +7,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=zita-rev1
-VERSION=${VERSION:-0.2.1}
+VERSION=${VERSION:-0.2.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -47,20 +47,16 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$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 \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+sed -i 's,pkgconf,pkg-config,' source/Makefile
make -C source CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" PREFIX=/usr
make -C source install DESTDIR=$PKG PREFIX=/usr
strip $PKG/usr/bin/$PRGNAM
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING doc/* \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING doc/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/usr/share/pixmaps
@@ -73,5 +69,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}