summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2014-04-27 10:11:41 -0500
committerErik Hanson <erik@slackbuilds.org>2014-04-27 12:15:43 -0500
commit2aad4ff310bb1499d4562a4ec157dd2846bf008c (patch)
treeb3ed6167e49c8d01be4a9aa350d28dec41a643a0
parentc1eba77a59f5938f29bb9a6671a171e2d9ae6aa1 (diff)
downloadslackbuilds-2aad4ff310bb1499d4562a4ec157dd2846bf008c.tar.gz
games/xpilot-ng: Added (SpaceWar Game)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
-rw-r--r--games/xpilot-ng/README3
-rw-r--r--games/xpilot-ng/doinst.sh3
-rw-r--r--games/xpilot-ng/slack-desc19
-rw-r--r--games/xpilot-ng/xpilot-ng.SlackBuild112
-rw-r--r--games/xpilot-ng/xpilot-ng.desktop10
-rw-r--r--games/xpilot-ng/xpilot-ng.info10
-rw-r--r--games/xpilot-ng/xpilot-ng.pngbin0 -> 1032 bytes
7 files changed, 157 insertions, 0 deletions
diff --git a/games/xpilot-ng/README b/games/xpilot-ng/README
new file mode 100644
index 0000000000..2f7cf1534a
--- /dev/null
+++ b/games/xpilot-ng/README
@@ -0,0 +1,3 @@
+XPilot NG is a multi-player 2D spacewar game. It is an extended
+version of XPilot, a true Internet classic. Like in XPilot, the
+aim of the game is to have fun and to beat your fellow pilots.
diff --git a/games/xpilot-ng/doinst.sh b/games/xpilot-ng/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/games/xpilot-ng/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/games/xpilot-ng/slack-desc b/games/xpilot-ng/slack-desc
new file mode 100644
index 0000000000..84a2190930
--- /dev/null
+++ b/games/xpilot-ng/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+xpilot-ng: xpilot-ng (SpaceWar Game)
+xpilot-ng:
+xpilot-ng: XPilot NG is a multi-player 2D spacewar game. It is an extended
+xpilot-ng: version of XPilot, a true Internet classic. Like in XPilot, the
+xpilot-ng: aim of the game is to have fun and to beat your fellow pilots.
+xpilot-ng:
+xpilot-ng: Homepage: http://xpilot.sourceforge.net
+xpilot-ng:
+xpilot-ng:
+xpilot-ng:
+xpilot-ng:
diff --git a/games/xpilot-ng/xpilot-ng.SlackBuild b/games/xpilot-ng/xpilot-ng.SlackBuild
new file mode 100644
index 0000000000..e2e98f750b
--- /dev/null
+++ b/games/xpilot-ng/xpilot-ng.SlackBuild
@@ -0,0 +1,112 @@
+#!/bin/sh
+
+# Slackware build script for xpilot-ng
+
+# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=xpilot-ng
+VERSION=${VERSION:-4.7.3}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+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 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --datadir=/usr/share/games \
+ --enable-sdl-gameloop \
+ --enable-sound \
+ --with-x \
+ --with-sdl-prefix=/usr \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/usr/share/applications
+install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
+
+mkdir -p $PKG/usr/share/pixmaps/
+install -D -m644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS BUGS COPYING ChangeLog FEATURES NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+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.${PKGTYPE:-tgz}
diff --git a/games/xpilot-ng/xpilot-ng.desktop b/games/xpilot-ng/xpilot-ng.desktop
new file mode 100644
index 0000000000..5d983fdb83
--- /dev/null
+++ b/games/xpilot-ng/xpilot-ng.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name= Xpilot NG
+Name[he]= Xpilot NG
+Comment= XPilot NG is a multi-player 2D SpaceWar Game
+Exec=xpilot-ng-sdl
+Icon=xpilot-ng
+Terminal=false
+Type=Application
+Categories=Game;SpaceWar;
+GenericName=Game
diff --git a/games/xpilot-ng/xpilot-ng.info b/games/xpilot-ng/xpilot-ng.info
new file mode 100644
index 0000000000..04559254de
--- /dev/null
+++ b/games/xpilot-ng/xpilot-ng.info
@@ -0,0 +1,10 @@
+PRGNAM="xpilot-ng"
+VERSION="4.7.3"
+HOMEPAGE="http://xpilot.sourceforge.net/"
+DOWNLOAD="http://sourceforge.net/projects/xpilot/files/xpilot_ng/xpilot-ng-4.7.3/xpilot-ng-4.7.3.tar.gz"
+MD5SUM="89a360747f7811a33c4821eec5583b7d"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="freealut"
+MAINTAINER="Dimitris Zlatanidis"
+EMAIL="d.zlatanidis@gmail.com"
diff --git a/games/xpilot-ng/xpilot-ng.png b/games/xpilot-ng/xpilot-ng.png
new file mode 100644
index 0000000000..ee2f70be93
--- /dev/null
+++ b/games/xpilot-ng/xpilot-ng.png
Binary files differ