summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJK Wood <joshuakwood@gmail.com>2013-02-13 18:40:53 -0500
committerdsomero <xgizzmo@slackbuilds.org>2013-02-13 19:33:55 -0500
commit51f41976f9c11ad6db64dd387f3cba6f175051d3 (patch)
tree111a847ba39efa00ff427e2ee0f2a31a70f7ab5a
parentdb31daca3ca8f9b5b4d023c5525b74f1ba12a187 (diff)
downloadslackbuilds-51f41976f9c11ad6db64dd387f3cba6f175051d3.tar.gz
games/naev: Added (2d space trading game)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r--games/naev/README11
-rw-r--r--games/naev/doinst.sh3
-rw-r--r--games/naev/naev.SlackBuild104
-rw-r--r--games/naev/naev.info13
-rw-r--r--games/naev/slack-desc19
5 files changed, 150 insertions, 0 deletions
diff --git a/games/naev/README b/games/naev/README
new file mode 100644
index 0000000000..8ba1031ac0
--- /dev/null
+++ b/games/naev/README
@@ -0,0 +1,11 @@
+Naev is a 2D space trading and combat game, taking inspiration from the Escape
+Velocity series, among others.
+
+You pilot a space ship from a top-down perspective, and are more or less free
+to do what you want. As the genre name implies, you're able to trade and engage
+in combat at will. Beyond that, there's an ever-growing number of storyline
+missions, equipment, and ships; Even the galaxy itself grows larger with each
+release. For the literarily-inclined, there are large amounts of lore
+accompanying everything from planets to equipment.
+
+The ndata download (included in the info file) is required to play.
diff --git a/games/naev/doinst.sh b/games/naev/doinst.sh
new file mode 100644
index 0000000000..5013ef6d40
--- /dev/null
+++ b/games/naev/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/naev/naev.SlackBuild b/games/naev/naev.SlackBuild
new file mode 100644
index 0000000000..a7c375feb7
--- /dev/null
+++ b/games/naev/naev.SlackBuild
@@ -0,0 +1,104 @@
+#!/bin/sh
+
+# Slackbuild for naev
+# Written by JK Wood <joshuakwood@gmail.com>
+
+# Slackbuild is released under the Dog-on-Fire License:
+# If use of this script causes your dog to catch on fire,
+# you agree to send me five dollars. Or a picture
+# of the dog on fire.
+# Otherwise, you're on your own. I've tested the script
+# on my own computer, and it hasn't broken anything.
+# So if it does it on your computer, that falls in
+# the realm of "Not my problem."
+#
+# Of course, if you'll send a bug report to the above
+# email address, I may be able to see what you did
+# wrong and prevent it from happening in the future.
+# In which case, I may just send YOU five dollars.
+
+# Oh, and feel free to copy it and modify it as you
+# see fit. Or as I see fit. Or as I fit. Although
+# that is unlikely, as I am rather tall.
+
+PRGNAM=naev
+VERSION=0.5.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"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -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 {} \;
+
+mkdir -p $PKG/usr/share/$PRGNAM
+cat $CWD/ndata-$VERSION > $PKG/usr/share/$PRGNAM/ndata
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --with-ndata-path=/usr/share/$PRGNAM/ndata \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+
+mkdir -p $PKG/usr/share/applications
+cat $TMP/$PRGNAM-$VERSION/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS LICENSE 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/naev/naev.info b/games/naev/naev.info
new file mode 100644
index 0000000000..f0731a3364
--- /dev/null
+++ b/games/naev/naev.info
@@ -0,0 +1,13 @@
+PRGNAM="naev"
+VERSION="0.5.3"
+HOMEPAGE="http://blog.naev.org"
+DOWNLOAD="http://sourceforge.net/projects/naev/files/naev-0.5.3/naev-0.5.3.tar.bz2 \
+ http://sourceforge.net/projects/naev/files/naev-0.5.3/ndata-0.5.3"
+MD5SUM="bec719b3daa33ec190d785120a7b0159 \
+ 652db194ffd2f45fc5f8ecee2ad2985c"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="JK Wood"
+REQUIRES="OpenAL"
+EMAIL="joshuakwood@gmail.com"
+
diff --git a/games/naev/slack-desc b/games/naev/slack-desc
new file mode 100644
index 0000000000..465aed535e
--- /dev/null
+++ b/games/naev/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 ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+naev: naev (2d space trading game)
+naev:
+naev: Naev is a 2D space trading and combat game, taking inspiration from the
+naev: Escape Velocity series, among others.
+naev:
+naev: Home: http://blog.naev.org/
+naev:
+naev:
+naev:
+naev:
+naev: