From bdf8f68b098bcfd2fa2ab64cb9d58fa13e512afc Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 25 Feb 2016 23:01:27 +0100 Subject: [PATCH] games-fps/alienarena: initial import of version 20130827 --- .../alienarena/alienarena-20130827.exheres-0 | 73 +++++++++++++++++++ .../files/alienarena-20130827-format.patch | 11 +++ 2 files changed, 84 insertions(+) create mode 100644 packages/games-fps/alienarena/alienarena-20130827.exheres-0 create mode 100644 packages/games-fps/alienarena/files/alienarena-20130827-format.patch diff --git a/packages/games-fps/alienarena/alienarena-20130827.exheres-0 b/packages/games-fps/alienarena/alienarena-20130827.exheres-0 new file mode 100644 index 0000000..66006b6 --- /dev/null +++ b/packages/games-fps/alienarena/alienarena-20130827.exheres-0 @@ -0,0 +1,73 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require gtk-icon-cache + +MY_PN=alienarena-7.66 +SUMMARY="Fast-paced multiplayer deathmatch game" +HOMEPAGE="http://red.planetarena.org/" +DOWNLOADS="http://icculus.org/alienarena/Files/${MY_PN}-linux${PV}.tar.gz + http://red.planetarena.org/files/${MY_PN}-linux${PV}.tar.gz" + +LICENCES="GPL-2 free-noncomm" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS=" + ( providers: ijg-jpeg jpeg-turbo ) [[ number-selected = exactly-one ]] +" + +DEPENDENCIES=" + build: + virtual/pkg-config + x11-proto/xf86dgaproto + x11-proto/xf86vidmodeproto + build+run: + media-libs/freetype:2 + media-libs/libvorbis + media-libs/openal + net-misc/curl + sys-libs/zlib + x11-dri/glu + x11-dri/mesa + x11-libs/libXxf86dga + x11-libs/libXxf86vm + providers:ijg-jpeg? ( media-libs/jpeg:= ) + providers:jpeg-turbo? ( media-libs/libjpeg-turbo ) +" + +WORK=${WORKBASE}/${MY_PN/_/.} + +DEFAULT_SRC_PREPARE_PATCHES=( + -p0 "${FILES}"/${PNV}-format.patch +) + +DEFAULT_SRC_CONFIGURE_PARAMS=( + --disable-documents + --enable-client + --with-icondir=/usr/share/icons/hicolor/48x48/apps/ + --with-xf86dga + --with-xf86vm + --with-zlib + --without-system-libode +) + +src_compile() { + emake AR=${AR} +} + +src_install() { + default + + insinto /usr/share/applications/ + hereins ${PN}.desktop << EOF +[Desktop Entry] +Name=Alien Arena +Type=Application +Comment=${SUMMARY} +Exec=${PN} +TryExec=${PN} +Icon=${PN} +Categories=Game;ActionGame; +EOF +} + diff --git a/packages/games-fps/alienarena/files/alienarena-20130827-format.patch b/packages/games-fps/alienarena/files/alienarena-20130827-format.patch new file mode 100644 index 0000000..4a88eab --- /dev/null +++ b/packages/games-fps/alienarena/files/alienarena-20130827-format.patch @@ -0,0 +1,11 @@ +--- source/game/p_client.c.old 2016-01-18 20:13:25.147714704 +0100 ++++ source/game/p_client.c 2016-01-18 20:13:38.776476727 +0100 +@@ -2123,7 +2123,7 @@ + #else + ent->ctype = 0; //alien is default + sprintf(modelpath, "players/%s/human", playermodel); +- sprintf(ent->charModel, playermodel); ++ sprintf(ent->charModel, "%s", playermodel); + Q2_FindFile (modelpath, &file); + if(file) + {