4 pkgdesc="Futuristic first person shooter by Epic Games, Game of the Year Edition (requires GOTY DVD)."
6 url="http://www.unrealtournament2004.com"
8 depends=('sdl' 'openal' 'unshield' 'libstdc++5')
12 source=('http://downloads.unrealadmin.org/UT2004/Patches/Linux/ut2004-lnxpatch3369-2.tar.bz2'
18 md5sums=('0fa447e05fe5a38e0e32adf171be405e'
19 '4d82299d7078da02feb29e571d63dd18'
20 'ca13c34441006d0234a053147b78f5d0'
21 '85623fe9fecd0678e4f12902c22d7272'
22 'ae0c25b321f327a465ad3580a53d7b61')
25 install -d ${pkgdir}/usr/share/{applications,pixmaps}
26 install -d ${pkgdir}/usr/bin
27 install -d ${pkgdir}/opt/ut2004/{System,Scripts}
29 cp -a ${srcdir}/UT2004-Patch/{Animations,Help,Speech,System,Textures,Web} ${pkgdir}/opt/ut2004/
31 if [ "$CARCH" == "x86_64" ]
33 sed -i 's/ut2004-bin/&-linux-amd64/g' ${srcdir}/ut2004.sh
35 rm ${pkgdir}/opt/ut2004/System/*-amd64
38 install -Dm755 ${srcdir}/ut2004.sh ${pkgdir}/usr/bin/ut2004
39 install -Dm755 ${srcdir}/data-install.sh ${pkgdir}/opt/ut2004/Scripts/data-install
40 install -Dm644 ${srcdir}/ut2004.desktop ${pkgdir}/usr/share/applications/ut2004.desktop
41 install -Dm644 ${srcdir}/ut2004.png ${pkgdir}/usr/share/pixmaps/ut2004.png
42 ln -s /usr/lib/libSDL-1.2.so.0 ${pkgdir}/opt/ut2004/System/ || return 1
43 ln -s /usr/lib/libopenal.so ${pkgdir}/opt/ut2004/System/openal.so || return 1