diff options
Diffstat (limited to 'audio/caps/caps.SlackBuild')
-rw-r--r-- | audio/caps/caps.SlackBuild | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/audio/caps/caps.SlackBuild b/audio/caps/caps.SlackBuild index b066efc520..2d0a979c7e 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 |