diff options
author | B. Watson <yalhcru@gmail.com> | 2014-11-05 08:34:50 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-11-08 06:30:10 +0700 |
commit | 2e8081a46c101e236b26256a8440f5d6d0ab168c (patch) | |
tree | 3573a3d5d558d81c8382259ee84810430330e384 /audio/calf/calf.SlackBuild | |
parent | e6edfd35aaa04e715d7d6ae54655421755676e84 (diff) | |
download | slackbuilds-2e8081a46c101e236b26256a8440f5d6d0ab168c.tar.gz |
audio/calf: Updated for version 0.0.19kx.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/calf/calf.SlackBuild')
-rw-r--r-- | audio/calf/calf.SlackBuild | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/audio/calf/calf.SlackBuild b/audio/calf/calf.SlackBuild index 99474a3719..f7b62727fa 100644 --- a/audio/calf/calf.SlackBuild +++ b/audio/calf/calf.SlackBuild @@ -4,8 +4,17 @@ # Written by B. Watson (yalhcru@gmail.com) +# 20141030 bkw: +# Finally getting around to submitting this, there have been no code +# changes upstream since 20140308. + +# 20140308 bkw: +# - Switched to falkTX's KXStudio fork of CALF. falkTX doesn't do release +# tarballs, so this is a git checkout from 20140308. +# - Added capability stuff. + PRGNAM=calf -VERSION=${VERSION:-0.0.18.6} +VERSION=${VERSION:-0.0.19kx} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} @@ -77,8 +86,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Fix for gcc-4.7.x -patch -p1 < $CWD/gcc47.patch +autoreconf -if # Note: The build ignores the provided -O2 in the flags (but the # -march/-mtune -fPIC stuff is used). If you really want to force @@ -98,13 +106,16 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ + --htmldir=/usr/doc/$PRGNAM-$VERSION \ + --enable-shared \ + --disable-static \ $LADSPA_OPT \ $DSSI_OPT \ $LV2_OPT \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG +make install DESTDIR=$PKG docdir=/usr/doc/$PRGNAM-$VERSION # install-strip is supported, but doesn't work: find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ @@ -113,9 +124,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG/usr/man -type f -exec gzip -9 {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS COPYING* ChangeLog README TODO \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING* ChangeLog README TODO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # This shouldn't be in the package: @@ -128,5 +137,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} |