updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / xonotic / PKGBUILD
blob659282e246cfa30c13ad0e522d2d84f8b0574db7
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Alexander Suhoverhov <cy at ngs dot ru>
3 pkgname=xonotic
4 pkgver=0.5.0
5 pkgrel=1
6 pkgdesc="A free, fast-paced crossplatform first-person shooter"
7 arch=('i686' 'x86_64')
8 url="http://xonotic.org"
9 license=('GPL')
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"
13         "xonotic-glx.desktop"
14         "xonotic-sdl.desktop")
15 md5sums=('7382f195386b8e51df65e57e6be413e5'
16          '914c7b9163e92b35f0ab57fdb1653ac5'
17          'da7d812ff231c9332cd694b39757adda')
19 build() {
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 )
28   # compile engine
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
34 package() {
35         cd $srcdir/Xonotic
37         # binaries
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
42         # convenience files
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
48 # vim: ts=2:sw=2 et: