Merge pull request #5461 from wyvie/openarena

Added openarena 0.8.8
This commit is contained in:
Arseniy Seroka 2014-12-26 01:17:49 +03:00
commit 1c8783f39b
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ fetchurl, makeWrapper, patchelf, pkgs, stdenv, SDL, libogg, libvorbis }:
stdenv.mkDerivation rec {
name = "openarena-${version}";
version = "0.8.8";
src = fetchurl {
name = "openarena.zip";
url = "http://openarena.ws/request.php?4";
sha256 = "0jmc1cmdz1rcvqc9ilzib1kilpwap6v0d331l6q53wsibdzsz3ss";
};
buildInputs = [ pkgs.unzip patchelf makeWrapper];
installPhase = let
gameDir = "$out/openarena-$version";
interpreter = "${stdenv.glibc}/lib/ld-linux*.so.?";
in ''
mkdir -pv $out/bin
cd $out
unzip $src
if [ "${stdenv.system}" == "x86_64-linux" ]; then
patchelf --set-interpreter ${interpreter} ${gameDir}/openarena.x86_64
makeWrapper "${gameDir}/openarena.x86_64" "$out/bin/openarena" \
--prefix LD_LIBRARY_PATH : "${SDL}/lib:${libogg}/lib:${libvorbis}/lib"
else
patchelf --set-interpreter ${interpreter} ${gameDir}/openarena.i386
makeWrapper "${gameDir}/openarena.i386" "$out/bin/openarena" \
--prefix LD_LIBRARY_PATH : "${SDL}/lib:${libogg}/lib:${libvorbis}/lib"
fi
'';
meta = {
description = "Crossplatform openarena client";
homepage = http://openarena.ws/;
maintainers = [ stdenv.lib.maintainers.wyvie ];
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl2;
};
}

View File

@ -1977,6 +1977,8 @@ let
inherit (pythonPackages) sqlite3;
};
openarena = callPackage ../games/openarena { };
opencryptoki = callPackage ../tools/security/opencryptoki { };
onscripter-en = callPackage ../games/onscripter-en { };