summaryrefslogtreecommitdiffstats
path: root/audio/lv2file/lv2file.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/lv2file/lv2file.SlackBuild')
-rw-r--r--audio/lv2file/lv2file.SlackBuild34
1 files changed, 20 insertions, 14 deletions
diff --git a/audio/lv2file/lv2file.SlackBuild b/audio/lv2file/lv2file.SlackBuild
index 2533771459..629d166bda 100644
--- a/audio/lv2file/lv2file.SlackBuild
+++ b/audio/lv2file/lv2file.SlackBuild
@@ -6,8 +6,11 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20141021 bkw:
+# update for 0.84, get rid of argtable patch as it's no longer needed.
+
PRGNAM=lv2file
-VERSION=${VERSION:-0.83}
+VERSION=${VERSION:-0.84}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,23 +43,26 @@ fi
set -e
+# The man page is in the debian archive, which might be an older
+# version than the release. For 0.84, the 0.83 man page is still valid.
+MANVER=0.83
+
+# download file has different name depending whether the Content-Disposition
+# header is honored.
+[ -e $CWD/$PRGNAM-upstream-$VERSION.tar.gz ] && \
+ mv $CWD/$PRGNAM-upstream-$VERSION.tar.gz $CWD/$VERSION.tar.gz
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-mkdir -p $PRGNAM-$VERSION
-cd $PRGNAM-$VERSION
-tar xvf $CWD/${PRGNAM}_$VERSION.orig.tar.gz
+rm -rf $PRGNAM-upstream-$VERSION
+tar xvf $CWD/$VERSION.tar.gz
+cd $PRGNAM-upstream-$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 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# The argtable on SBo is too old to have a pkg-config .pc file, so patch
-# the Makefile to not require it.
-patch -p1 < $CWD/argtable.diff
+# egregious permissions, instead of find/chown do this:
+chmod 755 .
+chmod 644 *
if [ "${FORCE_SLACK_FLAGS:-no}" = "yes" ]; then
sed -i "s/-O3/$SLKCFLAGS/" Makefile
@@ -70,7 +76,7 @@ make install DESTDIR=$PKG
# Use the debian man page (which is actually by the lv2file author,
# I dunno why it's not in the lv2file source distrib to begin with)
-tar xvf $CWD/${PRGNAM}_$VERSION-1.debian.tar.gz debian/$PRGNAM.1
+tar xvf $CWD/${PRGNAM}_$MANVER-1.debian.tar.gz debian/$PRGNAM.1
mkdir -p $PKG/usr/man/man1
gzip -9c < debian/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz