summaryrefslogtreecommitdiff
path: root/community/xonotic/PKGBUILD
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2012-02-19 20:37:04 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2012-02-19 20:37:04 -0300
commita379247a5f187c1608664530e9ff85663eff3201 (patch)
tree3a49e87e7419c4aca35d1f4f2e591d12c3821c78 /community/xonotic/PKGBUILD
parent1bf114d00280c9cfb2075d30830fdf86adb30951 (diff)
parent81ee1980feda43043eaebae2c596ae116a21f6e5 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/cuetools/PKGBUILD community/ekg2/PKGBUILD community/libcss/PKGBUILD community/libwapcaplet/PKGBUILD community/lxrandr/PKGBUILD community/menu-cache/PKGBUILD community/mumble/PKGBUILD community/ngircd/PKGBUILD community/oidentd/PKGBUILD community/openbox/PKGBUILD community/preload/PKGBUILD community/xdg-user-dirs/PKGBUILD extra/gdome2/PKGBUILD extra/libdiscid/PKGBUILD extra/pymad/PKGBUILD extra/qhull/PKGBUILD extra/speech-dispatcher/PKGBUILD multilib/lib32-gmp/PKGBUILD testing/xorg-server/PKGBUILD
Diffstat (limited to 'community/xonotic/PKGBUILD')
-rw-r--r--community/xonotic/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/community/xonotic/PKGBUILD b/community/xonotic/PKGBUILD
new file mode 100644
index 000000000..659282e24
--- /dev/null
+++ b/community/xonotic/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Alexander Suhoverhov <cy at ngs dot ru>
+pkgname=xonotic
+pkgver=0.5.0
+pkgrel=1
+pkgdesc="A free, fast-paced crossplatform first-person shooter"
+arch=('i686' 'x86_64')
+url="http://xonotic.org"
+license=('GPL')
+depends=('alsa-lib' 'curl' 'libjpeg>=8' 'libmodplug' 'libvorbis' 'libxpm' 'libxxf86dga' 'libxxf86vm' 'sdl' 'libpng>=1.4.0' 'xonotic-data')
+makedepends=('unzip' 'mesa')
+source=("http://dl.xonotic.org/xonotic-${pkgver}-source.zip"
+ "xonotic-glx.desktop"
+ "xonotic-sdl.desktop")
+md5sums=('7382f195386b8e51df65e57e6be413e5'
+ '914c7b9163e92b35f0ab57fdb1653ac5'
+ 'da7d812ff231c9332cd694b39757adda')
+
+build() {
+ # compile Xonotic-flavored fteqcc
+ #make -C Xonotic/source/fteqcc
+
+ # compile QuakeC game code
+ #( cd Xonotic/source/qcsrc/server && ../../fteqcc/fteqcc.bin -O3 -Ono-c -Ono-cs )
+ #( cd Xonotic/source/qcsrc/client && ../../fteqcc/fteqcc.bin -O3 -Ono-c -Ono-cs )
+ #( cd Xonotic/source/qcsrc/menu && ../../fteqcc/fteqcc.bin -O3 -Ono-c -Ono-cs )
+
+ # compile engine
+ make -C Xonotic/source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 cl-release
+ make -C Xonotic/source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 sdl-release
+ make -C Xonotic/source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 sv-release
+}
+
+package() {
+ cd $srcdir/Xonotic
+
+ # binaries
+ install -Dm755 source/darkplaces/darkplaces-dedicated $pkgdir/usr/bin/xonotic-dedicated
+ install -Dm755 source/darkplaces/darkplaces-glx $pkgdir/usr/bin/xonotic-glx
+ install -Dm755 source/darkplaces/darkplaces-sdl $pkgdir/usr/bin/xonotic-sdl
+
+ # convenience files
+ mkdir -p $pkgdir/usr/share/applications
+ install -Dm644 $srcdir/*.desktop -t $pkgdir/usr/share/applications
+ install -Dm644 $srcdir/Xonotic/misc/logos/icons_png/xonotic_512.png $pkgdir/usr/share/pixmaps/xonotic.png
+}
+
+# vim: ts=2:sw=2 et: