summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Vainomaa2015-08-12 15:15:29 +0300
committerMark Vainomaa2015-08-12 15:15:29 +0300
commitb33aea52c3246bf3879072fc600953b4c11e324a (patch)
tree2f93e1fe070751807950c3e3ce98cc467e307dee
downloadaur-b33aea52c3246bf3879072fc600953b4c11e324a.tar.gz
Initial commit
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD45
-rw-r--r--openarena-runner.sh23
-rw-r--r--openarena-server.desktop8
-rw-r--r--openarena-server.pngbin0 -> 2302 bytes
-rw-r--r--openarena.desktop7
-rw-r--r--openarena.pngbin0 -> 2255 bytes
7 files changed, 109 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fc9948cc0fc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = openarena
+ pkgdesc = A violent, sexy, multiplayer first person shooter based on the ioquake3 engine (binary package)
+ pkgver = 0.8.8
+ pkgrel = 2
+ url = http://openarena.ws/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = sdl
+ depends = libvorbis
+ depends = curl
+ source = http://download.tuxfamily.org/openarena/rel/088/openarena-0.8.8.zip
+ source = openarena-runner.sh
+ source = openarena.png
+ source = openarena-server.png
+ source = openarena.desktop
+ source = openarena-server.desktop
+ sha512sums = 9fa4dabe8a3428dc3cbec97f3b4d20c04569c14cdd00b60e6391c6dd61e310f246ff5ec97e7549821b3d6f5f94b140eb5411a2ddd83dafcad66937b7f78ea8dd
+ sha512sums = caf730b33f2ce3f997a533a34f3da4517bf4c114f97a11e7b462f10b65a9252f48d5d6ff7ee5592a4abb42b356c8784299440eb1b80cd4d269debc6568282881
+ sha512sums = ef68f8eb6251c3424464702ff894a6b88b473a3f4c1512af613125f5e5a7124f268490a9f6042095ff5bb807817e1f302c80d21987a2ed178e680f993d70b6f1
+ sha512sums = 9e8c860fe8e9a6fefa9839907df6e74f11564daaa2bf12b4c261dec34d65917e7110a41aa7777f16d3842c8371b9e960468d75c439d8b815454feeb8c01ed6e6
+ sha512sums = 5acd934f451559ad68b76a4de4b132b9ead9542dd078df7c7489ce2b2774557d81c6405622e8090ced2ace5f05165af1ed5dee8674d3fef725cd633727c92538
+ sha512sums = 426734a1517802b00b062006fcac4e321b4bf2fa8f3a3f7670a11ae62cf6cdd417bd158d0d613c0017e44e5a9528d72ef77e383a4fda2b230f0cc0f8ef9185d1
+
+pkgname = openarena
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..150b172220e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Mark Vainomaa <mikroskeem@mikroskeem.eu>
+
+pkgname='openarena'
+pkgver='0.8.8'
+_pkgver='088'
+pkgrel='2'
+pkgdesc="A violent, sexy, multiplayer first person shooter based on the ioquake3 engine (binary package)"
+arch=('i686' 'x86_64')
+url="http://openarena.ws/"
+license=('GPL')
+depends=('sdl' 'libvorbis' 'curl')
+source=("http://download.tuxfamily.org/openarena/rel/${_pkgver}/openarena-${pkgver}.zip"
+ 'openarena-runner.sh'
+ 'openarena.png'
+ 'openarena-server.png'
+ 'openarena.desktop'
+ 'openarena-server.desktop')
+sha512sums=('9fa4dabe8a3428dc3cbec97f3b4d20c04569c14cdd00b60e6391c6dd61e310f246ff5ec97e7549821b3d6f5f94b140eb5411a2ddd83dafcad66937b7f78ea8dd'
+ 'caf730b33f2ce3f997a533a34f3da4517bf4c114f97a11e7b462f10b65a9252f48d5d6ff7ee5592a4abb42b356c8784299440eb1b80cd4d269debc6568282881'
+ 'ef68f8eb6251c3424464702ff894a6b88b473a3f4c1512af613125f5e5a7124f268490a9f6042095ff5bb807817e1f302c80d21987a2ed178e680f993d70b6f1'
+ '9e8c860fe8e9a6fefa9839907df6e74f11564daaa2bf12b4c261dec34d65917e7110a41aa7777f16d3842c8371b9e960468d75c439d8b815454feeb8c01ed6e6'
+ '5acd934f451559ad68b76a4de4b132b9ead9542dd078df7c7489ce2b2774557d81c6405622e8090ced2ace5f05165af1ed5dee8674d3fef725cd633727c92538'
+ '426734a1517802b00b062006fcac4e321b4bf2fa8f3a3f7670a11ae62cf6cdd417bd158d0d613c0017e44e5a9528d72ef77e383a4fda2b230f0cc0f8ef9185d1')
+
+build() {
+ cd "${srcdir}/openarena-${pkgver}"
+ rm *.dll *.exe
+ rm -rf __MACOSX *.app
+}
+
+package() {
+ output="${pkgdir}/opt"
+ install -dm755 "${output}" "$pkgdir"/usr/share/pixmaps/ "$pkgdir"/usr/share/applications/ "$pkgdir"/usr/bin
+ mv "${srcdir}/openarena-${pkgver}" "${pkgdir}/opt/openarena"
+ find "${pkgdir}/opt/openarena" -type f -exec chmod 644 {} \;
+ find "${pkgdir}/opt/openarena" -type d -exec chmod 755 {} \;
+ chmod 755 "${pkgdir}"/opt/openarena/*.{i386,x86_64}
+
+ install -Dm 644 "$srcdir"/openarena{,-server}.png "$pkgdir"/usr/share/pixmaps/
+ install -Dm 644 "$srcdir"/openarena{,-server}.desktop "$pkgdir"/usr/share/applications/
+
+ install -Dm 755 "$srcdir"/openarena-runner.sh "$pkgdir"/opt/openarena/openarena-runner.sh
+ ln -s /opt/openarena/openarena-runner.sh "$pkgdir"/usr/bin/openarena
+ ln -s /opt/openarena/openarena-runner.sh "$pkgdir"/usr/bin/openarena-server
+}
diff --git a/openarena-runner.sh b/openarena-runner.sh
new file mode 100644
index 00000000000..cc9b578d3d3
--- /dev/null
+++ b/openarena-runner.sh
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+
+arch=$(uname -m)
+if [ "$arch" == 'x86_64' ]; then
+ arch="x86_64"
+else
+ arch="i386"
+fi
+
+file=`basename "$0"`
+if [ "$file" == 'openarena' ]; then
+ file='openarena'
+else
+ file='oa_ded'
+fi
+cd '/opt/openarena'
+
+# Comment by syrjala
+# openarena-runner.sh should pass on the command line options. I just banged my
+# head against the wall for a while trying to figure out why my command line
+# options didn't do anything.
+# So, here it is
+"./${file}.${arch}" $@
diff --git a/openarena-server.desktop b/openarena-server.desktop
new file mode 100644
index 00000000000..47bc786a258
--- /dev/null
+++ b/openarena-server.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=OpenArena Server
+Exec=openarena-server
+Icon=openarena-server
+Type=Application
+Terminal=true
+Comment=Run an OpenArena server
+Categories=Network;
diff --git a/openarena-server.png b/openarena-server.png
new file mode 100644
index 00000000000..55c5177f513
--- /dev/null
+++ b/openarena-server.png
Binary files differ
diff --git a/openarena.desktop b/openarena.desktop
new file mode 100644
index 00000000000..321461a325f
--- /dev/null
+++ b/openarena.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=OpenArena
+Exec=openarena
+Icon=openarena
+Type=Application
+Comment=A Quake3-based FPS Game
+Categories=Game;ActionGame;
diff --git a/openarena.png b/openarena.png
new file mode 100644
index 00000000000..0fa1f4ec3b4
--- /dev/null
+++ b/openarena.png
Binary files differ