summaryrefslogtreecommitdiff
path: root/audio/padthv1/padthv1.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/padthv1/padthv1.SlackBuild')
-rw-r--r--audio/padthv1/padthv1.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/audio/padthv1/padthv1.SlackBuild b/audio/padthv1/padthv1.SlackBuild
index 285610f468..de448a50e8 100644
--- a/audio/padthv1/padthv1.SlackBuild
+++ b/audio/padthv1/padthv1.SlackBuild
@@ -7,7 +7,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=padthv1
-VERSION=${VERSION:-0.9.4}
+VERSION=${VERSION:-0.9.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -87,8 +87,14 @@ mkdir -p $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
+LIBLO=no
+LV2=no
+ldd $PKG/usr/bin/${PRGNAM}_jack | grep -q liblo && LIBLO=yes
+[ -e $PKG/usr/lib$LIBDIRSUFFIX/lv2/$PRGNAM.lv2 ] && LV2=yes
+
mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
+sed -e "s,@LIBLO@,$LIBLO," -e "s,@LV2@,$LV2," $CWD/slack-desc \
+ > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
if [ "${SETCAP:-yes}" = "yes" ]; then