1 # Maintainer: kfgz <kfgz at interia pl>
6 pkgdesc="xReal - The highly advanced id Tech 3 engine and free indie game project"
7 url="http://xreal-project.net/"
8 license=('GPL2' 'Creative Commons')
11 depends=('sdl>=1.2' 'freetype2>=2.3.5' 'openal>=1.7' 'curl>=7.15' 'gtk2>=2.4.0' \
12 'gtkglext>=1.0' 'libxml2>=2.0' 'zlib>=1.2' 'glew>=1.5' 'boost>=1.35')
13 makedepends=('premake4' 'subversion')
14 source=('http://kfgz.mydevil.net/map-redm02-20090416.pk3' \
15 'http://kfgz.mydevil.net/map-redm08-20090422.pk3' \
16 'http://kfgz.mydevil.net/map-oddm01-20090623.pk3' \
17 'http://kfgz.mydevil.net/map-ingardm1-20090421.pk3' \
18 'http://kfgz.mydevil.net/map-gwdm2-20090302.pk3' \
22 noextract=('map-redm02-20090416.pk3' 'map-redm08-20090422.pk3' \
23 'map-oddm01-20090623.pk3' 'map-ingardm1-20090421.pk3' \
24 'map-gwdm2-20090302.pk3')
25 md5sums=('c7b43e0eafe2e0705f6ff9df50683f6a' \
26 '590f46cae82a8f0f8dfb415fbebb4e76' \
27 '9ddd5076638afe24dac8026189e80935' \
28 'edc6e5b74836815afd734372c089611a' \
29 '5649d3c3c6a93b76d65f0641d51b1787' \
30 '83ba94b450348e118fe879df5476d3ff' \
31 'ca3017dd2509db8e6af148f0ee6b9d4f' \
32 '9815589d6f4da23ed1bd417c3fc205ff')
34 _svntrunk=https://xreal.svn.sourceforge.net/svnroot/xreal/trunk/xreal
38 msg2 'Do NOT delete the src/ directory because it takes a long time to clone via svn!'
40 msg2 'Fetching files...'
42 if [ -d ${_svnmod}/.svn ]; then
43 (cd ${_svnmod} && svn up -r ${pkgver})
45 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
47 msg "SVN checkout done or server timeout"
49 cp -r ${_svnmod} ${_svnmod}-build
54 if [ `uname -m` = "x86_64" ]; then
62 install -dm755 "${pkgdir}"/usr/{bin,lib/xreal,share/applications}
65 if [ `uname -m` = "x86_64" ]; then
66 install -m755 bin/linux-x86_64/xreal-dedicated "${pkgdir}"/usr/bin/xreal-dedicated.x86_64
67 install -m755 bin/linux-x86_64/xreal-master "${pkgdir}"/usr/bin
68 install -m755 bin/linux-x86_64/xmap2 "${pkgdir}"/usr/bin
69 install -m755 bin/linux-x86_64/xreal "${pkgdir}"/usr/bin/xreal.x86_64
71 install -m755 bin/linux-i386/xreal-dedicated "${pkgdir}"/usr/bin/xreal-dedicated.i386
72 install -m755 bin/linux-i386/xreal-master "${pkgdir}"/usr/bin
73 install -m755 bin/linux-i386/xmap2 "${pkgdir}"/usr/bin
74 install -m755 bin/linux-i386/xreal "${pkgdir}"/usr/bin/xreal.i386
77 cp -R "${srcdir}"/${_svnmod}-build/base "${pkgdir}"/usr/lib/xreal/
79 install -m644 "${srcdir}"/xreal.desktop "${pkgdir}"/usr/share/applications
80 install -m644 "${srcdir}"/*.pk3 "${pkgdir}"/usr/lib/xreal/base/
81 install -m755 "${srcdir}"/xreal-dedicated "${pkgdir}"/usr/bin
82 install -m755 "${srcdir}"/xreal "${pkgdir}"/usr/bin
84 rm -rf "${srcdir}"/${_svnmod}-build