urbanterror: 4.2.023 -> 4.3.1
This commit is contained in:
parent
6b44f3523a
commit
a430acb4d8
@ -1,25 +1,30 @@
|
|||||||
{ stdenv, fetchurl, unzip, SDL, mesa, openal, curl, libXxf86vm }:
|
{ stdenv, fetchurl, unzip, SDL, mesa, openal, curl, libXxf86vm }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "urbanterror-${version}";
|
name = "urbanterror-${version}";
|
||||||
version = "4.2.023";
|
version = "4.3.1";
|
||||||
|
|
||||||
srcs =
|
srcs =
|
||||||
[ (fetchurl {
|
[ (fetchurl {
|
||||||
url = "http://mirror.urtstats.net/urbanterror/UrbanTerror42_full023.zip";
|
url = "http://cdn.fs1.urbanterror.info/urt/43/releases/zips/UrbanTerror431_full.zip";
|
||||||
sha256 = "e287e2a17432b81551f5c16e431d752484ce9be10508e756542f653757a29090";
|
sha256 = "1dfnyb2grf2fxxphwj7p2ff721j2l0gwrj76jzympr32sim5a6cw";
|
||||||
})
|
})
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
url = "https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-4.2.023.tar.gz";
|
url = "https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-4.3.1.zip";
|
||||||
sha256 = "03zrrx5b96c1srf2p24ca7zygq84byvrmcgh42d8bh5ds579ziqp";
|
sha256 = "1rbiqa1ki73649np3af96cilavkgv66a0b6p0a5x26cxvpgg128k";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ unzip SDL mesa openal curl libXxf86vm ];
|
buildInputs = [ unzip SDL mesa openal curl libXxf86vm ];
|
||||||
sourceRoot = "ioq3-for-UrbanTerror-4-release-4.2.023";
|
sourceRoot = "ioq3-for-UrbanTerror-4-release-4.3.1";
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
echo "USE_OPENAL = 1" > Makefile.local
|
echo "USE_OPENAL = 1" > Makefile.local
|
||||||
echo "USE_OPENAL_DLOPEN = 0" >> Makefile.local
|
echo "USE_OPENAL_DLOPEN = 0" >> Makefile.local
|
||||||
echo "USE_CURL = 1" >> Makefile.local
|
echo "USE_CURL = 1" >> Makefile.local
|
||||||
echo "USE_CURL_DLOPEN = 0" >> Makefile.local
|
echo "USE_CURL_DLOPEN = 0" >> Makefile.local
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
destDir="$out/opt/urbanterror"
|
destDir="$out/opt/urbanterror"
|
||||||
mkdir -p "$destDir"
|
mkdir -p "$destDir"
|
||||||
@ -28,7 +33,7 @@ stdenv.mkDerivation rec {
|
|||||||
"$destDir/Quake3-UrT"
|
"$destDir/Quake3-UrT"
|
||||||
cp -v build/release-linux-*/Quake3-UrT-Ded.* \
|
cp -v build/release-linux-*/Quake3-UrT-Ded.* \
|
||||||
"$destDir/Quake3-UrT-Ded"
|
"$destDir/Quake3-UrT-Ded"
|
||||||
cp -rv ../UrbanTerror42/q3ut4 "$destDir"
|
cp -rv ../UrbanTerror43/q3ut4 "$destDir"
|
||||||
cat << EOF > "$out/bin/urbanterror"
|
cat << EOF > "$out/bin/urbanterror"
|
||||||
#! ${stdenv.shell}
|
#! ${stdenv.shell}
|
||||||
cd "$destDir"
|
cd "$destDir"
|
||||||
@ -42,11 +47,15 @@ stdenv.mkDerivation rec {
|
|||||||
EOF
|
EOF
|
||||||
chmod +x "$out/bin/urbanterror-ded"
|
chmod +x "$out/bin/urbanterror-ded"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
p=$out/opt/urbanterror/Quake3-UrT
|
p=$out/opt/urbanterror/Quake3-UrT
|
||||||
cur_rpath=$(patchelf --print-rpath $p)
|
cur_rpath=$(patchelf --print-rpath $p)
|
||||||
patchelf --set-rpath $cur_rpath:${mesa}/lib $p
|
patchelf --set-rpath $cur_rpath:${mesa}/lib $p
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A multiplayer tactical FPS on top of Quake 3 engine";
|
description = "A multiplayer tactical FPS on top of Quake 3 engine";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user