diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2016-01-07 17:06:01 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2016-01-07 17:06:01 +0000 |
commit | 64167b96f3f903f40436efbfcf9b20a7f5bdac8b (patch) | |
tree | c809568367b8a3f874568428551f00c1f9a501ad /audio/jvmetro | |
parent | cddbba0e3142a58e317726a7e2af5cfe2daeefa4 (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.SlackBuild | 9 |
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" \ |