aboutsummaryrefslogtreecommitdiff
path: root/audio/caps/caps.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2013-06-27 21:32:45 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2013-06-27 21:32:45 -0300
commit46a89ba90823862f34b2244fbcf0a45b333c2753 (patch)
treeafabb0082d3db84b47e10f89e6ddb79326104c8f /audio/caps/caps.SlackBuild
parentbc8504ef1c8db69eb9c136e6cdc3107d867cb9e0 (diff)
audio/caps: Updated for version 0.9.7.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'audio/caps/caps.SlackBuild')
-rw-r--r--audio/caps/caps.SlackBuild23
1 files changed, 17 insertions, 6 deletions
diff --git a/audio/caps/caps.SlackBuild b/audio/caps/caps.SlackBuild
index b066efc520bac..2d0a979c7e7e7 100644
--- a/audio/caps/caps.SlackBuild
+++ b/audio/caps/caps.SlackBuild
@@ -4,10 +4,10 @@
# Written by B. Watson (yalhcru@gmail.com)
-# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details.
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=caps
-VERSION=${VERSION:-0.4.5}
+VERSION=${VERSION:-0.9.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,13 +40,16 @@ fi
FORCE_SLACK_CFLAGS=${FORCE_SLACK_CFLAGS:-no}
+# not sure whether the docs will always be up to date, so:
+DOCVER=${DOCVER:-$VERSION}
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/${PRGNAM}_$VERSION.tar.gz
+tar xvf $CWD/${PRGNAM}_$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -70,11 +73,19 @@ make install \
chmod 0755 $PKG/usr/lib$LIBDIRSUFFIX/ladspa/*.so
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- CHANGES COPYING README $PRGNAM.html \
- $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.
+if [ "$DOCS:-yes" != "yes" ]; then
+ ( cd $PKG/usr/doc/$PRGNAM-$VERSION
+ tar xvf $CWD/$PRGNAM-doc_$DOCVER.tar.bz2
+ mv $PRGNAM-doc-$DOCVER html
+ chown root.root html/*
+ chmod 644 html/*
+ )
+fi
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc