summaryrefslogtreecommitdiffstats
path: root/audio/caps/caps.SlackBuild
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2018-12-18 05:45:20 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2018-12-22 08:44:18 +0700
commit9e43b1f00c879517902e5fdeee9584ed021da95c (patch)
tree9e6a014dce8f568afcf633f8e68751cde046ebc4 /audio/caps/caps.SlackBuild
parentb60b46e217d70847e3751d4aff45d1fc8e29f8ef (diff)
downloadslackbuilds-9e43b1f00c879517902e5fdeee9584ed021da95c.tar.gz
slackbuilds-9e43b1f00c879517902e5fdeee9584ed021da95c.tar.xz
audio/caps: Updated for version 0.9.26.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'audio/caps/caps.SlackBuild')
-rw-r--r--audio/caps/caps.SlackBuild35
1 files changed, 21 insertions, 14 deletions
diff --git a/audio/caps/caps.SlackBuild b/audio/caps/caps.SlackBuild
index f197d318d1..8b852bbeb6 100644
--- a/audio/caps/caps.SlackBuild
+++ b/audio/caps/caps.SlackBuild
@@ -6,10 +6,16 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20181218 bkw:
+# - update for v0.9.26.
+# - expand UPGRADE.txt.
+# - test script with versions 0.9.7, 0.9.20, 0.9.24 (it still works).
+# - minor script cleanups/simplifications.
+
# 20170622 bkw: fix build on -current
PRGNAM=caps
-VERSION=${VERSION:-0.9.24}
+VERSION=${VERSION:-0.9.26}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -51,13 +57,12 @@ 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 {} \+
-patch -p1 < $CWD/gcc7fix.diff
+# 0.9.26 doesn't need this (and it won't apply), leaving it here
+# in case someone really needs 0.9.24 for existing projects.
+[ "$VERSION" = "0.9.24" ] && patch -p1 < $CWD/gcc7fix.diff
if [ "$FORCE_SLACK_CFLAGS" = "yes" ]; then
make OPTS="$SLKCFLAGS" ARCH=""
@@ -66,22 +71,24 @@ else
make
fi
-make install \
- DEST=$PKG/usr/lib$LIBDIRSUFFIX/ladspa \
- RDFDEST=$PKG/usr/share/ladspa/rdf \
+LADSPALIB=$PKG/usr/lib$LIBDIRSUFFIX/ladspa
+make install DEST=$LADSPALIB RDFDEST=$PKG/usr/share/ladspa/rdf
# LADSPA standard seems to be mode 0755
-chmod 0755 $PKG/usr/lib$LIBDIRSUFFIX/ladspa/*.so
+chmod 0755 $LADSPALIB
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# docs are in a separate tarball now, just a wget -r of upstream's site
-if [ "${DOCS:-yes}" = "yes" ]; then
+DOCVER="${DOCVER:-$VERSION}"
+DOCFILE="$CWD/$PRGNAM-doc-unofficial_$DOCVER.tar.bz2"
+
+if [ "${DOCS:-yes}" = "yes" ] && [ -e "$DOCFILE" ]; then
( cd $PKG/usr/doc/$PRGNAM-$VERSION
- tar xvf $CWD/$PRGNAM-doc-unofficial_$VERSION.tar.bz2 --no-same-owner
- mv $PRGNAM-doc-unofficial_$VERSION html
+ tar xvf "$DOCFILE" --no-same-owner
+ mv $PRGNAM-doc-unofficial_$DOCVER html
chown root.root html/*
chmod 644 html/*
)