aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-16 09:08:23 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-16 09:08:23 +0700
commit77ebdec548cc50ae46d265d40f9609898be35660 (patch)
tree3f82c87f70304f4452de5f842983e5ab9e4fca35 /games
parentb1add597aed06dc8ed87a1eb8a898eb9edf1f611 (diff)
games/starfighter: Updated for version 2.0.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/starfighter/README2
-rw-r--r--games/starfighter/icons/starfighter-16px.pngbin548 -> 0 bytes
-rw-r--r--games/starfighter/icons/starfighter-32px.pngbin1563 -> 0 bytes
-rw-r--r--games/starfighter/icons/starfighter-48px.pngbin3077 -> 0 bytes
-rw-r--r--games/starfighter/icons/starfighter-64px.pngbin4371 -> 0 bytes
-rw-r--r--games/starfighter/starfighter.SlackBuild50
-rw-r--r--games/starfighter/starfighter.desktop8
-rw-r--r--games/starfighter/starfighter.info6
8 files changed, 25 insertions, 41 deletions
diff --git a/games/starfighter/README b/games/starfighter/README
index c93b3cf1761f5..ee87959117331 100644
--- a/games/starfighter/README
+++ b/games/starfighter/README
@@ -6,3 +6,5 @@ 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.
+
+Note: On slackware 14.2 make sure SDL2_image is 2.0.1 build 2 or higher.
diff --git a/games/starfighter/icons/starfighter-16px.png b/games/starfighter/icons/starfighter-16px.png
deleted file mode 100644
index b9c3f7ff78a00..0000000000000
--- a/games/starfighter/icons/starfighter-16px.png
+++ /dev/null
Binary files differ
diff --git a/games/starfighter/icons/starfighter-32px.png b/games/starfighter/icons/starfighter-32px.png
deleted file mode 100644
index 792e26e9d7852..0000000000000
--- a/games/starfighter/icons/starfighter-32px.png
+++ /dev/null
Binary files differ
diff --git a/games/starfighter/icons/starfighter-48px.png b/games/starfighter/icons/starfighter-48px.png
deleted file mode 100644
index 6895a85741b7e..0000000000000
--- a/games/starfighter/icons/starfighter-48px.png
+++ /dev/null
Binary files differ
diff --git a/games/starfighter/icons/starfighter-64px.png b/games/starfighter/icons/starfighter-64px.png
deleted file mode 100644
index 0bc9ed662a0ab..0000000000000
--- a/games/starfighter/icons/starfighter-64px.png
+++ /dev/null
Binary files differ
diff --git a/games/starfighter/starfighter.SlackBuild b/games/starfighter/starfighter.SlackBuild
index 2b90f7e198dce..badb241470ec0 100644
--- a/games/starfighter/starfighter.SlackBuild
+++ b/games/starfighter/starfighter.SlackBuild
@@ -3,14 +3,21 @@
# Written by Tim Dickson dickson.tim at googlemail.com
+# changelog
+
+# updated 15/10/2016 for v1.6
+# make file now supports destdir and project comes with desktop file and icon
+# so separate one not needed.
+# doc location still changed to support slackware prefered location
+
PRGNAM=starfighter
-VERSION=${VERSION:-1.4}
+VERSION=${VERSION:-1.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -21,8 +28,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -36,11 +43,10 @@ else
fi
set -e
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-$VERSION-src
tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz
cd $PRGNAM-$VERSION-src
chown -R root:root .
@@ -49,35 +55,19 @@ find -L . \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-
-# The makefile doesn't support DESTDIR, but that's okay :)
-mkdir -p $PKG/usr/games $PKG/usr/doc/$PRGNAM-$VERSION
+# make file now supports DESTDIR
+# we just change the doc dir to the slackware standard.
+sed -i 's_share/doc/\$(PROG)_doc/\$(PROG)-\$(VERSION)_g' Makefile
make \
- CFLAGS="$SLKCFLAGS $(sdl-config --cflags) -Wall -DLINUX" \
- BINDIR=/usr/games/ \
- DOCDIR=/usr/doc/$PRGNAM-$VERSION/ \
- DATADIR=/usr/share/games/parallelrealities/
+ CFLAGS="$SLKCFLAGS $(pkg-config --cflags sdl2 SDL2_image SDL2_mixer) -Wall -DLINUX " \
+ CXXFLAGS="$SLKCFLAGS $(pkg-config --cflags sdl2 SDL2_image SDL2_mixer) -Wall -g "
make install \
- BINDIR=$PKG/usr/games/ \
- DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION/ \
- DATADIR=$PKG/usr/share/games/parallelrealities/
+ CFLAGS="$SLKCFLAGS $(pkg-config --cflags sdl2 SDL2_image SDL2_mixer) -Wall -DLINUX " \
+ CXXFLAGS="$SLKCFLAGS $(pkg-config --cflags sdl2 SDL2_image SDL2_mixer) -Wall -g " \
+ DESTDIR=$PKG
# Fixup ownership (no need for games group ownership of anything)
chown -R root:root $PKG
-
-mkdir -p $PKG/usr/share/applications
-cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
-
-mkdir -p $PKG/usr/share/icons/hicolor/{16x16,32x32,48x48,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-48px.png > \
- $PKG/usr/share/icons/hicolor/48x48/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 {} \;
diff --git a/games/starfighter/starfighter.desktop b/games/starfighter/starfighter.desktop
deleted file mode 100644
index 1867992a05902..0000000000000
--- a/games/starfighter/starfighter.desktop
+++ /dev/null
@@ -1,8 +0,0 @@
-[Desktop Entry]
-Categories=Game;ArcadeGame;
-Version=1.0
-Name=Starfighter
-Icon=starfighter
-Exec=/usr/games/starfighter
-Terminal=false
-Type=Application
diff --git a/games/starfighter/starfighter.info b/games/starfighter/starfighter.info
index 159f0039e0664..d58165166f609 100644
--- a/games/starfighter/starfighter.info
+++ b/games/starfighter/starfighter.info
@@ -1,8 +1,8 @@
PRGNAM="starfighter"
-VERSION="1.4"
+VERSION="1.6"
HOMEPAGE="http://www.nongnu.org/starfighter/"
-DOWNLOAD="http://download-mirror.savannah.gnu.org/releases/starfighter/1.4/starfighter-1.4-src.tar.gz"
-MD5SUM="171c4eb507f33a0202ca8fed291280d8"
+DOWNLOAD="http://download-mirror.savannah.gnu.org/releases/starfighter/1.6/starfighter-1.6-src.tar.gz"
+MD5SUM="6abd08149594357c170da1d73f0099d7"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="SDL2_image SDL2_mixer"