updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / ut2004-goty / PKGBUILD
blob2f02173c854d8de03f7d2a5ada4feabbdb01d2c9
1 pkgname=ut2004-goty
2 pkgver=3369.2
3 pkgrel=1
4 pkgdesc="Futuristic first person shooter by Epic Games, Game of the Year Edition (requires GOTY DVD)."
5 arch=('i686' 'x86_64')
6 url="http://www.unrealtournament2004.com"
7 license=('custom')
8 depends=('sdl' 'openal' 'unshield' 'libstdc++5')
9 install=ut2004.install
10 provides=('ut2004')
12 source=('http://downloads.unrealadmin.org/UT2004/Patches/Linux/ut2004-lnxpatch3369-2.tar.bz2'
13         'ut2004.desktop'
14         'data-install.sh'
15         'ut2004.sh'
16         'ut2004.png')
18 md5sums=('0fa447e05fe5a38e0e32adf171be405e'
19          '4d82299d7078da02feb29e571d63dd18'
20          'ca13c34441006d0234a053147b78f5d0'
21          '85623fe9fecd0678e4f12902c22d7272'
22          'ae0c25b321f327a465ad3580a53d7b61')
24 build() {
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" ]
32     then
33         sed -i 's/ut2004-bin/&-linux-amd64/g' ${srcdir}/ut2004.sh
34     else
35         rm ${pkgdir}/opt/ut2004/System/*-amd64
36     fi
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