diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/unvanquished/README | 6 | ||||
-rw-r--r-- | games/unvanquished/doinst.sh | 5 | ||||
-rw-r--r-- | games/unvanquished/slack-desc | 19 | ||||
-rw-r--r-- | games/unvanquished/unvanquished.SlackBuild | 111 | ||||
-rw-r--r-- | games/unvanquished/unvanquished.desktop | 10 | ||||
-rw-r--r-- | games/unvanquished/unvanquished.info | 12 |
6 files changed, 163 insertions, 0 deletions
diff --git a/games/unvanquished/README b/games/unvanquished/README new file mode 100644 index 0000000000000..dde07dd05cd14 --- /dev/null +++ b/games/unvanquished/README @@ -0,0 +1,6 @@ +Unvanquished is a fast-paced, futuristic FPS with +RTS elements, pitting technologically advanced +humans against hordes of highly adaptable aliens. +The player can choose from either team, providing +a fresh gameplay experience on both sides of the +conflict. diff --git a/games/unvanquished/doinst.sh b/games/unvanquished/doinst.sh new file mode 100644 index 0000000000000..8542d1c18e4c0 --- /dev/null +++ b/games/unvanquished/doinst.sh @@ -0,0 +1,5 @@ +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/games/unvanquished/slack-desc b/games/unvanquished/slack-desc new file mode 100644 index 0000000000000..f1c86d04e438b --- /dev/null +++ b/games/unvanquished/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------------------------------------------------------| +unvanquished: unvanquished (FPS/RTS Game - Aliens vs. Humans) +unvanquished: +unvanquished: Unvanquished is a fast-paced, futuristic FPS with +unvanquished: RTS elements, pitting technologically advanced +unvanquished: humans against hordes of highly adaptable aliens. +unvanquished: The player can choose from either team, providing +unvanquished: a fresh gameplay experience on both sides of the +unvanquished: conflict. +unvanquished: +unvanquished: Homepage: http://www.unvanquished.net/ +unvanquished: diff --git a/games/unvanquished/unvanquished.SlackBuild b/games/unvanquished/unvanquished.SlackBuild new file mode 100644 index 0000000000000..20748c13b1a99 --- /dev/null +++ b/games/unvanquished/unvanquished.SlackBuild @@ -0,0 +1,111 @@ +#!/bin/sh + +# Slackware build script for unvanquished + +# 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=unvanquished +VERSION=${VERSION:-0.25.0} +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.xz +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 {} \; + +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release .. +make + +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/games/$PRGNAM-$VERSION +cp -rf * $PKG/usr/share/games/$PRGNAM-$VERSION +rm -rf $PKG/usr/share/games/$PRGNAM-$VERSION/*.cmake +rm -rf $PKG/usr/share/games/$PRGNAM-$VERSION/Makefile +rm -rf $PKG/usr/share/games/$PRGNAM-$VERSION/lcc/*.cmake +rm -rf $PKG/usr/share/games/$PRGNAM-$VERSION/lcc/Makefile +rm -rf $PKG/usr/share/games/$PRGNAM-$VERSION/lcc/CMakeFiles +rm -rf $PKG/usr/share/games/$PRGNAM-$VERSION/CMakeFiles +mkdir -p $PKG/usr/share/games/$PRGNAM-$VERSION/pkg +cp $CWD/unvanquished_0.25.0.pk3 $PKG/usr/share/games/$PRGNAM-$VERSION/pkg +cd .. + +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 debian/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.svg + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a GPL.txt README.md COPYING.txt $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/unvanquished/unvanquished.desktop b/games/unvanquished/unvanquished.desktop new file mode 100644 index 0000000000000..ecf54526220af --- /dev/null +++ b/games/unvanquished/unvanquished.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Unvanquished +Name[he]= Unvanquished +Comment=FPS/RTS Game - Aliens vs. Humans +Exec=/usr/share/games/unvanquished-0.25.0/daemon +Icon=unvanquished +Terminal=false +Type=Application +Categories=Game;ActionGame;StrategyGame; +GenericName=Game diff --git a/games/unvanquished/unvanquished.info b/games/unvanquished/unvanquished.info new file mode 100644 index 0000000000000..db4823f821aba --- /dev/null +++ b/games/unvanquished/unvanquished.info @@ -0,0 +1,12 @@ +PRGNAM="unvanquished" +VERSION="0.25.0" +HOMEPAGE="http://www.unvanquished.net/" +DOWNLOAD="http://www.unvanquished.net/downloads/sources/stripped/unvanquished-0.25.0.tar.xz \ + http://sourceforge.net/projects/unvanquished/files/Assets/unvanquished_0.25.0.pk3" +MD5SUM="691054b50470e814a2c5d29e36165f35 \ + 3b6f35a877e7af231f0337795036a740" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="GeoIP SDL2 libwebp speex OpenAL opusfile" +MAINTAINER="Dimitris Zlatanidis" +EMAIL="d.zlatanidis@gmail.com" |