mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
games/starfighter: Updated for version 1.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
4656443d5f
commit
f70902d8a9
3 changed files with 25 additions and 22 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue