1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Alexander Suhoverhov <cy at ngs dot ru>
6 pkgdesc="A free, fast-paced crossplatform first-person shooter"
8 url="http://xonotic.org"
10 depends=('alsa-lib' 'curl' 'libjpeg>=8' 'libmodplug' 'libvorbis' 'libxpm' 'libxxf86dga' 'libxxf86vm' 'sdl' 'libpng>=1.4.0' 'xonotic-data')
11 makedepends=('unzip' 'mesa')
12 source=("http://dl.xonotic.org/xonotic-${pkgver}-source.zip"
14 "xonotic-sdl.desktop")
15 md5sums=('7382f195386b8e51df65e57e6be413e5'
16 '914c7b9163e92b35f0ab57fdb1653ac5'
17 'da7d812ff231c9332cd694b39757adda')
20 # compile Xonotic-flavored fteqcc
21 #make -C Xonotic/source/fteqcc
23 # compile QuakeC game code
24 #( cd Xonotic/source/qcsrc/server && ../../fteqcc/fteqcc.bin -O3 -Ono-c -Ono-cs )
25 #( cd Xonotic/source/qcsrc/client && ../../fteqcc/fteqcc.bin -O3 -Ono-c -Ono-cs )
26 #( cd Xonotic/source/qcsrc/menu && ../../fteqcc/fteqcc.bin -O3 -Ono-c -Ono-cs )
29 make -C Xonotic/source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 cl-release
30 make -C Xonotic/source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 sdl-release
31 make -C Xonotic/source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 sv-release
38 install -Dm755 source/darkplaces/darkplaces-dedicated $pkgdir/usr/bin/xonotic-dedicated
39 install -Dm755 source/darkplaces/darkplaces-glx $pkgdir/usr/bin/xonotic-glx
40 install -Dm755 source/darkplaces/darkplaces-sdl $pkgdir/usr/bin/xonotic-sdl
43 mkdir -p $pkgdir/usr/share/applications
44 install -Dm644 $srcdir/*.desktop -t $pkgdir/usr/share/applications
45 install -Dm644 $srcdir/Xonotic/misc/logos/icons_png/xonotic_512.png $pkgdir/usr/share/pixmaps/xonotic.png