diff options
author | Eric Hameleers <alien@slackware.com> | 2007-11-06 22:57:49 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2007-11-06 22:57:49 +0000 |
commit | f5d2e957570fd626d7c48f59adafac9956f383eb (patch) | |
tree | 0492b0f443e02d9535bcda9c1d289111f18d9679 /abuse_sdl | |
parent | c4ec17d29f4773672a10efd4e244d846d1c0fb0b (diff) | |
download | asb-f5d2e957570fd626d7c48f59adafac9956f383eb.tar.gz asb-f5d2e957570fd626d7c48f59adafac9956f383eb.tar.xz |
Fix the .desktop file addition
Diffstat (limited to 'abuse_sdl')
-rwxr-xr-x | abuse_sdl/build/abuse_sdl.SlackBuild | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/abuse_sdl/build/abuse_sdl.SlackBuild b/abuse_sdl/build/abuse_sdl.SlackBuild index 5fa4bf2f..4f6cc15a 100755 --- a/abuse_sdl/build/abuse_sdl.SlackBuild +++ b/abuse_sdl/build/abuse_sdl.SlackBuild @@ -149,15 +149,7 @@ echo "++" echo "|| $PRGNAM-$VERSION" echo "++" -# Explode the package framework: -if [ -f $SRCDIR/_$PRGNAM.tar.gz ]; then - cd $PKG - explodepkg $SRCDIR/_$PRGNAM.tar.gz - cd - -fi - cd $TMP/tmp-$PRGNAM - echo "Extracting the source archive(s) for $PRGNAM..." if $(file ${SOURCE[0]} | grep -q ": bzip2"); then tar -xjvf ${SOURCE[0]} @@ -193,7 +185,11 @@ else make DESTDIR=$PKG install 2>&1 |tee $OUTPUT/install-${PRGNAM}.log fi -# Copy in the game's datafiles +# Add a .desktop file: +mkdir -p $PKG/usr/share/applications +cp $SRCDIR/{PRGNAM}.desktop $PKG/usr/share/applications/ + +# Copy in the game's datafiles: mkdir -p $PKG/usr/share/games/abuse tar -C $PKG/usr/share/games/abuse/ -zxvf ${SOURCE[1]} chown -R root:root $PKG/usr/share/games/abuse/ |