summaryrefslogtreecommitdiffstats
path: root/audio/guitarix/guitarix.SlackBuild
diff options
context:
space:
mode:
author B. Watson2017-08-26 06:15:59 +0200
committer David Spencer2017-09-02 11:24:38 +0200
commitf274938acb8489617dd03fb8e868a8a0aad2e2ff (patch)
tree1a471b29323c6d921c77c4e3563ab45d891a1260 /audio/guitarix/guitarix.SlackBuild
parentfa24ee57cfee8897bb09a3226e84a358fc739934 (diff)
downloadslackbuilds-f274938acb8489617dd03fb8e868a8a0aad2e2ff.tar.gz
audio/guitarix: Updated for version 0.35.6.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'audio/guitarix/guitarix.SlackBuild')
-rw-r--r--audio/guitarix/guitarix.SlackBuild17
1 files changed, 15 insertions, 2 deletions
diff --git a/audio/guitarix/guitarix.SlackBuild b/audio/guitarix/guitarix.SlackBuild
index 7e4018c173..bf682a7d2d 100644
--- a/audio/guitarix/guitarix.SlackBuild
+++ b/audio/guitarix/guitarix.SlackBuild
@@ -6,6 +6,10 @@
# Modified by B. Watson <yalhcru@gmail.com>. Modified version released
# under the WTFPL, for details see http://www.wtfpl.net/txt/copying/
+# 20170825 bkw:
+# - Updated for 0.35.6
+# - Install the bundled roboto font.
+
# 20170725 bkw:
# - Updated for 0.35.5
@@ -87,7 +91,7 @@
# - Add guitarix's README to /usr/doc
PRGNAM=guitarix
-VERSION=${VERSION:-0.35.5}
+VERSION=${VERSION:-0.35.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -137,15 +141,20 @@ 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 {} \+
+# guitarix wants to install the roboto font in the wrong place for
+# slackware.
+sed -i '/fonts/s,\<truetype\>,TTF,' wscript tools/undiag
+
# this is no longer documented in README, but still here for debugging.
if [ "${LV2:-yes}" = "no" ]; then
LV2OPT=--no-lv2
fi
+# grrr, -DNDEBUG doesn't get added to the flags automatically...
LIBDIR="/usr/lib${LIBDIRSUFFIX}"
./waf configure \
--prefix=/usr \
- --cxxflags-release="$SLKCFLAGS" \
+ --cxxflags-release="$SLKCFLAGS -DNDEBUG" \
--ladspadir="$LIBDIR/ladspa/" \
--lv2dir="$LIBDIR/lv2/" \
--libdir="$LIBDIR" \
@@ -157,6 +166,10 @@ LIBDIR="/usr/lib${LIBDIRSUFFIX}"
./waf build # -v # verbose, shows actual commands
./waf install --destdir=$PKG
+# --install-roboto-font does the wrong thing, we'll install it manually.
+mkdir -p $PKG/usr/share/fonts/TTF
+install -m0644 fonts/* $PKG/usr/share/fonts/TTF
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true