summaryrefslogtreecommitdiff
path: root/community/stuntrally
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-27 00:03:49 -0800
committerroot <root@rshg054.dnsready.net>2013-02-27 00:03:49 -0800
commit23018fec360e50c7cb4de4b2411650ce79532e54 (patch)
tree766004a81e02dd8a2ea0d5092ce2d19aed799bf6 /community/stuntrally
parent32e4cb82a73f6efc4254917e6324a2b61ecb5ddc (diff)
Wed Feb 27 00:03:48 PST 2013
Diffstat (limited to 'community/stuntrally')
-rw-r--r--community/stuntrally/PKGBUILD34
-rw-r--r--community/stuntrally/stuntrally.install11
2 files changed, 45 insertions, 0 deletions
diff --git a/community/stuntrally/PKGBUILD b/community/stuntrally/PKGBUILD
new file mode 100644
index 000000000..1cc321145
--- /dev/null
+++ b/community/stuntrally/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com>
+# Contributor: Jason Melton <jason.melton@gmail.com>
+
+pkgname=stuntrally
+pkgver=1.9
+pkgrel=2
+pkgdesc="Stunt Rally game with track editor, based on VDrift"
+arch=('i686' 'x86_64')
+license=('GPL3')
+url="http://code.google.com/p/vdrift-ogre"
+depends=('libvorbis' 'mygui' 'sdl' 'enet' 'hicolor-icon-theme' 'libxcursor' 'stuntrally-data')
+makedepends=('cmake' 'boost')
+install=stuntrally.install
+source=(src_${pkgver}.tar.gz::https://nodeload.github.com/${pkgname}/stuntrally/tar.gz/${pkgver})
+md5sums=('3253c5a64a6d3f4fc4b756ea431286de')
+
+build() {
+ cd "${srcdir}/stuntrally-${pkgver}/"
+
+ rm -rf build
+ mkdir build && cd build
+
+ cmake -DCMAKE_INSTALL_PREFIX="/usr" -DSHARE_INSTALL="share/stuntrally" ..
+ make
+}
+
+package() {
+ cd "${srcdir}/stuntrally-${pkgver}/build/"
+
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}/usr/share/stuntrally/"
+}
diff --git a/community/stuntrally/stuntrally.install b/community/stuntrally/stuntrally.install
new file mode 100644
index 000000000..547348418
--- /dev/null
+++ b/community/stuntrally/stuntrally.install
@@ -0,0 +1,11 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}