summaryrefslogtreecommitdiff
path: root/community/xonotic
diff options
context:
space:
mode:
Diffstat (limited to 'community/xonotic')
-rw-r--r--community/xonotic/PKGBUILD53
-rw-r--r--community/xonotic/xonotic-dedicated.sh3
-rw-r--r--community/xonotic/xonotic-glx.desktop11
-rw-r--r--community/xonotic/xonotic-glx.sh3
-rw-r--r--community/xonotic/xonotic-sdl.desktop11
-rw-r--r--community/xonotic/xonotic-sdl.sh3
6 files changed, 84 insertions, 0 deletions
diff --git a/community/xonotic/PKGBUILD b/community/xonotic/PKGBUILD
new file mode 100644
index 000000000..676240162
--- /dev/null
+++ b/community/xonotic/PKGBUILD
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Alexander Suhoverhov <cy at ngs dot ru>
+pkgname=xonotic
+pkgver=0.1.0
+pkgrel=2
+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-0.1.0preview.zip'
+ 'xonotic-dedicated.sh'
+ 'xonotic-glx.sh'
+ 'xonotic-sdl.sh'
+ 'xonotic-glx.desktop'
+ 'xonotic-sdl.desktop')
+md5sums=('aafb43893aa66e01488c817e3a60d96d'
+ '2c0aef8104fa34aef58d368d994abca3'
+ 'd2f357eab92db585448476470bbf9c1c'
+ 'fdb9b96cd2b700ea9e8a7d6a1ab3505e'
+ '914c7b9163e92b35f0ab57fdb1653ac5'
+ 'da7d812ff231c9332cd694b39757adda')
+
+build() {
+ # le compiling
+ cd $srcdir/Xonotic/source/darkplaces
+
+ # build the binaries separately instead to avoid truncated files
+ make CPUOPTIMIZATIONS="${CFLAGS}" DP_LINK_TO_LIBJPEG=1 cl-nexuiz
+ make CPUOPTIMIZATIONS="${CFLAGS}" DP_LINK_TO_LIBJPEG=1 sdl-nexuiz
+ make CPUOPTIMIZATIONS="${CFLAGS}" DP_LINK_TO_LIBJPEG=1 sv-nexuiz
+}
+
+package() {
+ cd $srcdir/Xonotic
+
+ # binaries
+ install -Dm755 source/darkplaces/nexuiz-dedicated $pkgdir/opt/xonotic/xonotic-dedicated
+ install -Dm755 source/darkplaces/nexuiz-glx $pkgdir/opt/xonotic/xonotic-glx
+ install -Dm755 source/darkplaces/nexuiz-sdl $pkgdir/opt/xonotic/xonotic-sdl
+
+ # convenience files
+ mkdir -p $pkgdir/usr/share/applications
+ install -Dm644 $srcdir/*.desktop -t $pkgdir/usr/share/applications
+ install -Dm755 $srcdir/xonotic-dedicated.sh $pkgdir/usr/bin/xonotic-dedicated
+ install -Dm755 $srcdir/xonotic-glx.sh $pkgdir/usr/bin/xonotic-glx
+ install -Dm755 $srcdir/xonotic-sdl.sh $pkgdir/usr/bin/xonotic-sdl
+ install -Dm644 $srcdir/Xonotic/misc/logos/icons_png/xonotic_512.png $pkgdir/usr/share/pixmaps/xonotic.png
+}
+
+# vim: ts=2:sw=2 et:
diff --git a/community/xonotic/xonotic-dedicated.sh b/community/xonotic/xonotic-dedicated.sh
new file mode 100644
index 000000000..b9998ca3c
--- /dev/null
+++ b/community/xonotic/xonotic-dedicated.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /opt/xonotic
+./xonotic-dedicated $@
diff --git a/community/xonotic/xonotic-glx.desktop b/community/xonotic/xonotic-glx.desktop
new file mode 100644
index 000000000..9f9e78cc1
--- /dev/null
+++ b/community/xonotic/xonotic-glx.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Version=2.5
+Encoding=UTF-8
+Name=Xonotic (GLX)
+Comment=a free open-source first person shooter
+Icon=/usr/share/pixmaps/xonotic.png
+Exec=/usr/bin/xonotic-glx
+Terminal=false
+StartupNotify=false
+Categories=Game;
diff --git a/community/xonotic/xonotic-glx.sh b/community/xonotic/xonotic-glx.sh
new file mode 100644
index 000000000..e52a99c9f
--- /dev/null
+++ b/community/xonotic/xonotic-glx.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /opt/xonotic
+./xonotic-glx $@
diff --git a/community/xonotic/xonotic-sdl.desktop b/community/xonotic/xonotic-sdl.desktop
new file mode 100644
index 000000000..32b37f2c5
--- /dev/null
+++ b/community/xonotic/xonotic-sdl.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Version=2.5
+Encoding=UTF-8
+Name=Xonotic (SDL)
+Comment=a free open-source first person shooter
+Icon=/usr/share/pixmaps/xonotic.png
+Exec=/usr/bin/xonotic-sdl
+Terminal=false
+StartupNotify=false
+Categories=Game;
diff --git a/community/xonotic/xonotic-sdl.sh b/community/xonotic/xonotic-sdl.sh
new file mode 100644
index 000000000..976d3ccf5
--- /dev/null
+++ b/community/xonotic/xonotic-sdl.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /opt/xonotic
+./xonotic-sdl $@