From 0eefec5a54e21839235443924de47a8d9b877dbe Mon Sep 17 00:00:00 2001 From: "Tim Dickson (timsoft)" Date: Thu, 13 May 2010 00:27:11 +0200 Subject: games/starfighter: Updated for version 1.1 --- games/starfighter/README | 22 ++++------- games/starfighter/doinst.sh | 7 ++++ games/starfighter/icons/starfighter-16px.png | Bin 0 -> 548 bytes games/starfighter/icons/starfighter-32px.png | Bin 0 -> 1563 bytes games/starfighter/icons/starfighter-64px.png | Bin 0 -> 4371 bytes games/starfighter/slack-desc | 20 +++++----- games/starfighter/starfighter-large.png | Bin 4371 -> 0 bytes games/starfighter/starfighter-small.png | Bin 548 -> 0 bytes games/starfighter/starfighter.SlackBuild | 56 ++++++++++++++++----------- games/starfighter/starfighter.desktop | 4 +- games/starfighter/starfighter.info | 10 +++-- games/starfighter/starfighter.png | Bin 1563 -> 0 bytes 12 files changed, 66 insertions(+), 53 deletions(-) create mode 100644 games/starfighter/icons/starfighter-16px.png create mode 100644 games/starfighter/icons/starfighter-32px.png create mode 100644 games/starfighter/icons/starfighter-64px.png delete mode 100644 games/starfighter/starfighter-large.png delete mode 100644 games/starfighter/starfighter-small.png delete mode 100644 games/starfighter/starfighter.png (limited to 'games/starfighter') diff --git a/games/starfighter/README b/games/starfighter/README index 1ba933a32b..c93b3cf176 100644 --- a/games/starfighter/README +++ b/games/starfighter/README @@ -1,14 +1,8 @@ -Project: Starfighter is an old school 2D shoot 'em up. In the game you take -on the role of a rebel pilot called Chris, who is attempting to overthrow a -military corporation called Weapco. Weapco has seized control of the known -universe and currently rules it with an iron fist. Chris can no longer -stand back and watch as millions of people suffer and die. He steals an -experimental craft known as "Firefly" and begins his mission to fight his -way to Sol, freeing key systems along the way. The game opens with Chris -attempting to escape a Weapco patrol that has intercepted him. - -This game depends on SDL, SDL_image, and SDL_mixer. All dependancies are -included in the Slackware 12.2 SDL packages. - -This game is produced by parallelrealities.co.uk. For the music, download -http://www.parallelrealities.co.uk/download/starfighter/starfighter-1.0-1.music.zip +Project: Starfighter is an old school 2D shoot 'em up game. In the game, you +take on the role of a rebel pilot named Chris who is attempting to overthrow +a military corporation called Weapco. Weapco has seized control of the known +universe and currently rules it with an iron fist. Chris can no longer stand +back and watch as millions of people suffer and die. He steals an experimental +craft known as "Firefly" and begins his mission to fight his way to Sol, +freeing key systems along the way. The game opens with Chris attempting to +escape a Weapco patrol that has intercepted him. diff --git a/games/starfighter/doinst.sh b/games/starfighter/doinst.sh index 5fb28930db..1f8ff67ded 100644 --- a/games/starfighter/doinst.sh +++ b/games/starfighter/doinst.sh @@ -1,3 +1,10 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + diff --git a/games/starfighter/icons/starfighter-16px.png b/games/starfighter/icons/starfighter-16px.png new file mode 100644 index 0000000000..b9c3f7ff78 Binary files /dev/null and b/games/starfighter/icons/starfighter-16px.png differ diff --git a/games/starfighter/icons/starfighter-32px.png b/games/starfighter/icons/starfighter-32px.png new file mode 100644 index 0000000000..792e26e9d7 Binary files /dev/null and b/games/starfighter/icons/starfighter-32px.png differ diff --git a/games/starfighter/icons/starfighter-64px.png b/games/starfighter/icons/starfighter-64px.png new file mode 100644 index 0000000000..0bc9ed662a Binary files /dev/null and b/games/starfighter/icons/starfighter-64px.png differ diff --git a/games/starfighter/slack-desc b/games/starfighter/slack-desc index 7004ab23b9..6d93f31dba 100644 --- a/games/starfighter/slack-desc +++ b/games/starfighter/slack-desc @@ -6,14 +6,14 @@ # leave one space after the ':'. |-----handy-ruler------------------------------------------------------| -starfighter: Starfighter (an old school 2D shoot 'em up) +starfighter: starfighter (Project Starfighter game) starfighter: -starfighter: In starfighter, you take on the role of a rebel pilot named Chris, -starfighter: who is attempting to overthrow a military corporation called Weapco. -starfighter: Weapco has seized control of the known universe and rules it with -starfighter: an iron fist. Chris can no longer stand back and watch as millions -starfighter: of people suffer and die. He steals an experimental craft known as -starfighter: "Firefly" and begins his mission to fight his way to Sol, freeing -starfighter: key systems along the way. -starfighter: -starfighter: Homepage: http://www.parallelrealities.co.uk +starfighter: An old school 2D shoot 'em up. In the game you take on the role of a +starfighter: rebel pilot called Chris, who is attempting to overthrow a military +starfighter: corporation called Weapco. Weapco has seized control of the known +starfighter: universe and currently rules it with an iron fist. Chris can no +starfighter: longer stand back and watch as millions of people suffer and die. He +starfighter: steals an experimental craft known as "Firefly" and begins his +starfighter: mission to fight his way to Sol, freeing key systems along the way. +starfighter: The game opens with Chris attempting to escape a Weapco patrol that +starfighter: has intercepted him. software by www.parallelrealities.co.uk diff --git a/games/starfighter/starfighter-large.png b/games/starfighter/starfighter-large.png deleted file mode 100644 index 0bc9ed662a..0000000000 Binary files a/games/starfighter/starfighter-large.png and /dev/null differ diff --git a/games/starfighter/starfighter-small.png b/games/starfighter/starfighter-small.png deleted file mode 100644 index b9c3f7ff78..0000000000 Binary files a/games/starfighter/starfighter-small.png and /dev/null differ diff --git a/games/starfighter/starfighter.SlackBuild b/games/starfighter/starfighter.SlackBuild index e36a9fc9c1..8865d99fb7 100644 --- a/games/starfighter/starfighter.SlackBuild +++ b/games/starfighter/starfighter.SlackBuild @@ -25,7 +25,7 @@ elif [ "$ARCH" = "x86_64" ]; then LIBDIRSUFFIX="64" fi -set -e +set -e # Exit on most errors rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -40,34 +40,44 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -#because the make file doesn't support DESTDIR directly.. -#modify makefile -mv makefile oldmakefile -sed -e 's/\/usr/\$\(DESTDIR\)\/usr/g' -e '/strip/ i\ -\tmkdir -p \$\(BINDIR\)' -e '/strip/ i\ -\tmkdir -p \$\(DOCDIR\)' oldmakefile >makefile -rm oldmakefile +# The makefile doesn't support DESTDIR, but that's okay :) +mkdir -p $PKG/usr/bin $PKG/usr/doc/$PRGNAM-$VERSION +make \ + CFLAGS="$SLKCFLAGS $(sdl-config --cflags) -Wall -DLINUX" \ + BINDIR=/usr/bin/ \ + DOCDIR=/usr/doc/$PRGNAM-$VERSION/ \ + DATADIR=/usr/share/games/parallelrealities/ +make install \ + BINDIR=$PKG/usr/bin/ \ + DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION/ \ + DATADIR=$PKG/usr/share/games/parallelrealities/ -make -#binaries are stripped in this makefile with install option -make install DESTDIR=$PKG +# Add music to the package +unzip -d $PKG/usr/share/games/parallelrealities $CWD/$PRGNAM-1.0-1.music.zip +chmod 0755 $PKG/usr/share/games/parallelrealities/music +find $PKG/usr/share/games/parallelrealities/music -type f -exec chmod 0644 {} \; + +# Fixup ownership (no need for games group ownership of anything) +chown -R root:root $PKG -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a docs $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/usr/share/applications -#put the menu item and icons in right place -cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop -mkdir -p $PKG/usr/share/icons/hicolor/32x32/apps -cp $CWD/$PRGNAM.png $PKG/usr/share/icons/hicolor/32x32/apps/$PRGNAM.png -mkdir -p $PKG/usr/share/icons/hicolor/16x16/apps -cp $CWD/$PRGNAM-small.png $PKG/usr/share/icons/hicolor/16x16/apps/$PRGNAM.png -mkdir -p $PKG/usr/share/icons/hicolor/64x64/apps -cp $CWD/$PRGNAM-large.png $PKG/usr/share/icons/hicolor/64x64/apps/$PRGNAM.png +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop + +mkdir -p $PKG/usr/share/icons/hicolor/{16x16,32x32,64x64}/apps +cat $CWD/icons/$PRGNAM-16px.png > \ + $PKG/usr/share/icons/hicolor/16x16/apps/$PRGNAM.png +cat $CWD/icons/$PRGNAM-32px.png > \ + $PKG/usr/share/icons/hicolor/32x32/apps/$PRGNAM.png +cat $CWD/icons/$PRGNAM-64px.png > \ + $PKG/usr/share/icons/hicolor/64x64/apps/$PRGNAM.png + +# Add the build script to the package docs and fixup doc permissions +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc -type f -exec chmod 0644 {} \; mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/games/starfighter/starfighter.desktop b/games/starfighter/starfighter.desktop index 8597cb94d5..27450d665c 100644 --- a/games/starfighter/starfighter.desktop +++ b/games/starfighter/starfighter.desktop @@ -1,7 +1,5 @@ [Desktop Entry] -Encoding=UTF-8 -Categories=Application;Game; -X-Desktop-File-Install-Version=1.0 +Categories=Game; Name=Starfighter Icon=starfighter Exec=starfighter diff --git a/games/starfighter/starfighter.info b/games/starfighter/starfighter.info index 86650a6286..1cc1b2674d 100644 --- a/games/starfighter/starfighter.info +++ b/games/starfighter/starfighter.info @@ -1,8 +1,12 @@ PRGNAM="starfighter" VERSION="1.1" HOMEPAGE="http://www.parallelrealities.co.uk/projects/starfighter.php" -DOWNLOAD="http://www.parallelrealities.co.uk/download/starfighter/starfighter-1.1-1.tar.gz" -MD5SUM="6a4b704dbc83c7403842b936f95ee958" +DOWNLOAD="http://www.parallelrealities.co.uk/download/starfighter/starfighter-1.1-1.tar.gz \ + http://www.parallelrealities.co.uk/download/starfighter/starfighter-1.0-1.music.zip" +MD5SUM="6a4b704dbc83c7403842b936f95ee958 \ + ae0ff17bb6489a1b42ed381249a9340c" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" MAINTAINER="Tim Dickson (timsoft)" EMAIL="tim@tree-of-life.co.uk" -APPROVED="chess" +APPROVED="rworkman" diff --git a/games/starfighter/starfighter.png b/games/starfighter/starfighter.png deleted file mode 100644 index 792e26e9d7..0000000000 Binary files a/games/starfighter/starfighter.png and /dev/null differ -- cgit v1.2.3