summaryrefslogtreecommitdiff
path: root/community/urbanterror
diff options
context:
space:
mode:
Diffstat (limited to 'community/urbanterror')
-rw-r--r--community/urbanterror/PKGBUILD46
-rw-r--r--community/urbanterror/urbanterror-server.sh4
-rw-r--r--community/urbanterror/urbanterror.desktop7
-rw-r--r--community/urbanterror/urbanterror.pngbin0 -> 41721 bytes
-rw-r--r--community/urbanterror/urbanterror.sh4
5 files changed, 61 insertions, 0 deletions
diff --git a/community/urbanterror/PKGBUILD b/community/urbanterror/PKGBUILD
new file mode 100644
index 000000000..598a1b5ba
--- /dev/null
+++ b/community/urbanterror/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 81627 2012-12-25 03:43:56Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: grimi <grimi at poczta dot fm>
+
+pkgname=urbanterror
+pkgver=4.2.009
+pkgrel=1
+epoch=2
+pkgdesc="A team-based tactical shooter based on the Quake 3 Engine"
+arch=('i686' 'x86_64')
+url="http://www.urbanterror.net"
+license=('GPL2')
+depends=('sdl' 'openal' 'curl' 'urbanterror-data')
+makedepends=('mesa')
+source=("http://download.urbanterror.info/urt/42/zips/UrbanTerror42_full_009.zip"
+ "urbanterror.sh"
+ "urbanterror-server.sh"
+ "urbanterror.desktop"
+ "urbanterror.png")
+md5sums=('434d4b10713d8efa09d8c36a2b254929'
+ '7812ece92ab71986ef038b3291adc412'
+ 'fbd3059497cf68769c0cbf02545c6bec'
+ '08a99f4d7ad63024bc886e118ddcbc0f'
+ 'f9a57d898df73f43c6a85c8d8cc455ba')
+
+package() {
+ install -d $pkgdir/opt/urbanterror
+
+ cd $pkgdir/opt/urbanterror
+
+ # Copy binaries.
+ [[ $CARCH == "i686" ]] && install -m755 $srcdir/UrbanTerror42/Quake3-UrT.i386 urbanterror
+ [[ $CARCH == "i686" ]] && install -m755 $srcdir/UrbanTerror42/Quake3-UrT-Ded.i386 urbanterror-ded
+ [[ $CARCH == "x86_64" ]] && install -m755 $srcdir/UrbanTerror42/Quake3-UrT.x86_64 urbanterror
+ [[ $CARCH == "x86_64" ]] && install -m755 $srcdir/UrbanTerror42/Quake3-UrT-Ded.x86_64 urbanterror-ded
+
+ # Copy desktop launcher.
+ install -Dm644 $srcdir/urbanterror.desktop $pkgdir/usr/share/applications/urbanterror.desktop
+ install -Dm644 $srcdir/urbanterror.png $pkgdir/usr/share/pixmaps/urbanterror.png
+
+ # Copy launch scripts.
+ install -Dm755 $srcdir/urbanterror.sh $pkgdir/usr/bin/urbanterror
+ install -Dm755 $srcdir/urbanterror-server.sh $pkgdir/usr/bin/urbanterror-server
+}
+
+# vim: sw=2:ts=2 et:
diff --git a/community/urbanterror/urbanterror-server.sh b/community/urbanterror/urbanterror-server.sh
new file mode 100644
index 000000000..8d3f14959
--- /dev/null
+++ b/community/urbanterror/urbanterror-server.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+cd /opt/urbanterror/
+exec ./urbanterror-ded "$@"
diff --git a/community/urbanterror/urbanterror.desktop b/community/urbanterror/urbanterror.desktop
new file mode 100644
index 000000000..f4d359dfa
--- /dev/null
+++ b/community/urbanterror/urbanterror.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=Urban Terror
+Type=Application
+Categories=Game;
+Terminal=false
+Exec=urbanterror
+Icon=urbanterror
diff --git a/community/urbanterror/urbanterror.png b/community/urbanterror/urbanterror.png
new file mode 100644
index 000000000..df596c29b
--- /dev/null
+++ b/community/urbanterror/urbanterror.png
Binary files differ
diff --git a/community/urbanterror/urbanterror.sh b/community/urbanterror/urbanterror.sh
new file mode 100644
index 000000000..65c222b4a
--- /dev/null
+++ b/community/urbanterror/urbanterror.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+cd /opt/urbanterror/
+exec ./urbanterror "$@"