summaryrefslogtreecommitdiffstats
path: root/audio-players/last.fm/INSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'audio-players/last.fm/INSTALL')
-rwxr-xr-xaudio-players/last.fm/INSTALL9
1 files changed, 7 insertions, 2 deletions
diff --git a/audio-players/last.fm/INSTALL b/audio-players/last.fm/INSTALL
index c0c2cdc14d..0341d6fe37 100755
--- a/audio-players/last.fm/INSTALL
+++ b/audio-players/last.fm/INSTALL
@@ -1,6 +1,11 @@
local path="$INSTALL_ROOT/usr/share/last.fm" &&
mkdir -vp "$path" &&
cp -r bin/* "$path" &&
-sed -i "s,WOOT,$TRACK_ROOT," $SPELL_DIRECTORY/last.fm &&
-cp $SPELL_DIRECTORY/last.fm "$INSTALL_ROOT/usr/bin" &&
+# Create the wrapper script inline here.
+# /usr/bin/last.fm -> go to /usr/share/last.fm and execute the real thing
+echo '#!/bin/bash' > "$INSTALL_ROOT/usr/bin/last.fm" &&
+echo "pushd \"$INSTALL_ROOT/usr/share/last.fm\" > /dev/null
+./last.fm.sh
+popd > /dev/null" >> $INSTALL_ROOT/usr/bin/last.fm &&
+chmod a+rx "$INSTALL_ROOT/usr/bin/last.fm" &&
default_install