aboutsummaryrefslogtreecommitdiff
path: root/audio/jvmetro
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-01-07 17:06:01 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2016-01-07 17:06:01 +0000
commit64167b96f3f903f40436efbfcf9b20a7f5bdac8b (patch)
treec809568367b8a3f874568428551f00c1f9a501ad /audio/jvmetro
parentcddbba0e3142a58e317726a7e2af5cfe2daeefa4 (diff)
audio/jvmetro: Fix DESTDIR handling.
The binary wasn't actually in the package; it was being installed directly into /usr/bin. Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'audio/jvmetro')
-rw-r--r--audio/jvmetro/jvmetro.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/audio/jvmetro/jvmetro.SlackBuild b/audio/jvmetro/jvmetro.SlackBuild
index ddfb361b0912f..42fcfd73e7bde 100644
--- a/audio/jvmetro/jvmetro.SlackBuild
+++ b/audio/jvmetro/jvmetro.SlackBuild
@@ -51,9 +51,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Correct Makefile to point in /usr/bin vs /usr/local/bin
-sed -i -e 's+/usr/local+/usr+' $TMP/$PRGNAM-$VERSION/Makefile
-cat $TMP/$PRGNAM-$VERSION/Makefile
+# Correct Makefile to point in /usr/bin vs /usr/local/bin and honour DESTDIR
+sed -i \
+ -e 's+/usr/local+/usr+' \
+ -e 's+install jvmetro /usr/bin+ginstall -D jvmetro $(DESTDIR)/usr/bin/jvmetro+' \
+ -e 's/-g3 //' \
+ Makefile
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \