aboutsummaryrefslogtreecommitdiff
path: root/games/starfighter/starfighter.SlackBuild
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 /games/starfighter/starfighter.SlackBuild
parent4656443d5f6aca82c6f4d6d46a246e36ce98e8d6 (diff)
games/starfighter: Updated for version 1.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/starfighter/starfighter.SlackBuild')
-rw-r--r--games/starfighter/starfighter.SlackBuild40
1 files changed, 21 insertions, 19 deletions
diff --git a/games/starfighter/starfighter.SlackBuild b/games/starfighter/starfighter.SlackBuild
index badb241470ec0..4ffd82f3a5843 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