summaryrefslogtreecommitdiffstats
path: root/audio/fabla/fabla.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/fabla/fabla.SlackBuild')
-rw-r--r--audio/fabla/fabla.SlackBuild21
1 files changed, 17 insertions, 4 deletions
diff --git a/audio/fabla/fabla.SlackBuild b/audio/fabla/fabla.SlackBuild
index 8a5d091a0f..5af4b5be91 100644
--- a/audio/fabla/fabla.SlackBuild
+++ b/audio/fabla/fabla.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for fabla
# Copyright 2015 Klaatu, Wellington NZ
@@ -8,10 +8,13 @@
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=fabla
-VERSION=${VERSION:-1.3.1}
+VERSION=${VERSION:-1.3.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -21,7 +24,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -59,6 +69,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Patch for the newer lv2
+patch -p1 < $CWD/fabla-1.3.2-lv2-1.18.0.patch
+
mkdir -p build
cd build
cmake \
@@ -104,4 +117,4 @@ if [ X"$JALV" != "X" ]; then
fi
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE