summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Dickson <dickson.tim@googlemail.com>2017-03-06 23:04:00 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-03-11 07:03:43 +0700
commitf70902d8a92216ddc11bee5e5bb27be5000de629 (patch)
tree0d9d4f263ad31a7da5391e3cfae2a4cb2ff88b83
parent4656443d5f6aca82c6f4d6d46a246e36ce98e8d6 (diff)
downloadslackbuilds-f70902d8a92216ddc11bee5e5bb27be5000de629.tar.gz
games/starfighter: Updated for version 1.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/starfighter/doinst.sh1
-rw-r--r--games/starfighter/starfighter.SlackBuild40
-rw-r--r--games/starfighter/starfighter.info6
3 files changed, 25 insertions, 22 deletions
diff --git a/games/starfighter/doinst.sh b/games/starfighter/doinst.sh
index 658d106939..3ceb7eae8d 100644
--- a/games/starfighter/doinst.sh
+++ b/games/starfighter/doinst.sh
@@ -7,6 +7,7 @@ if [ -e /usr/share/icons/hicolor/icon-theme.cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
+
if [ -x /usr/bin/kbuildsycoca4 ]; then
/usr/bin/kbuildsycoca4 >/dev/null 2>&1
fi
diff --git a/games/starfighter/starfighter.SlackBuild b/games/starfighter/starfighter.SlackBuild
index badb241470..4ffd82f3a5 100644
--- a/games/starfighter/starfighter.SlackBuild
+++ b/games/starfighter/starfighter.SlackBuild
@@ -9,9 +9,10 @@
# 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
+# updated 05/03/2017 for v1.7
PRGNAM=starfighter
-VERSION=${VERSION:-1.6}
+VERSION=${VERSION:-1.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -51,26 +52,27 @@ tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz
cd $PRGNAM-$VERSION-src
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-# 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 $(pkg-config --cflags sdl2 SDL2_image SDL2_mixer) -Wall -DLINUX " \
- CXXFLAGS="$SLKCFLAGS $(pkg-config --cflags sdl2 SDL2_image SDL2_mixer) -Wall -g "
-make install \
- 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
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Fixup ownership (no need for games group ownership of anything)
-chown -R root:root $PKG
-# Add the build script to the package docs and fixup doc permissions
+#new make file uses automake.
+CFLAGS="$SLKFLAGS"
+CXXFLAGS="$SLKCFLAGS"
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+make
+make install DESTDIR=$PKG
+
+# Add the build script to the package docs
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
diff --git a/games/starfighter/starfighter.info b/games/starfighter/starfighter.info
index d58165166f..796b4aeb08 100644
--- a/games/starfighter/starfighter.info
+++ b/games/starfighter/starfighter.info
@@ -1,8 +1,8 @@
PRGNAM="starfighter"
-VERSION="1.6"
+VERSION="1.7"
HOMEPAGE="http://www.nongnu.org/starfighter/"
-DOWNLOAD="http://download-mirror.savannah.gnu.org/releases/starfighter/1.6/starfighter-1.6-src.tar.gz"
-MD5SUM="6abd08149594357c170da1d73f0099d7"
+DOWNLOAD="http://download-mirror.savannah.gnu.org/releases/starfighter/1.7/starfighter-1.7-src.tar.gz"
+MD5SUM="dfaa649221a3997ec7eddbf2dbdeb6a0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="SDL2_image SDL2_mixer"