games/warsow: Updated to 0.6.

svn path=/nixpkgs/trunk/; revision=25352
This commit is contained in:
Alexander Tsamutali 2011-01-02 23:36:25 +00:00
parent bbedfb4a5e
commit 51282e4a98

View File

@ -3,14 +3,14 @@
}:
stdenv.mkDerivation rec {
name = "warsow-${version}";
version = "0.5";
version = "0.6";
src1 = fetchurl {
url = "http://static.warsow.net/release/warsow_${version}_sdk.zip";
sha256 = "018z83irj6wr5mj4pnya1r4abmg9sqznnkyq0gw9sr9q9dxr7k1m";
url = "http://www.zcdn.org/dl/warsow_${version}_sdk.zip";
sha256 = "1mrsr4af4wi04slc2f66rr467rxa15ppny7ms4gxhaqvvki5x3nq";
};
src2 = fetchurl {
url = "http://static.warsow.net/release/warsow_${version}_unified.zip";
sha256 = "002idzqjq41ygjny9kk31fjx7l9clxy4xm38hc5dky6yfx17ib36";
url = "http://www.zcdn.org/dl/warsow_${version}_unified.zip";
sha256 = "0a4407kw86yvr411dd9m0dgp7wdkgd9j4ac32gfz6xprgplqkws3";
};
unpackPhase = ''
mkdir warsow_${version}_sdk
@ -19,10 +19,6 @@ stdenv.mkDerivation rec {
cd source
unzip $src2 'basewsw/*' -d release
'';
patchPhase = ''
substituteInPlace Makefile --replace openal-config 'pkg-config openal'
substituteInPlace snd_openal/snd_main.c --replace libopenal.so.0 ${openal}/lib/libopenal.so
'';
buildInputs = [ unzip pkgconfig zlib curl libjpeg libvorbis libXxf86dga
libXxf86vm libXinerama SDL mesa openal ];
installPhase = ''