summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCarsten Teibes2014-10-10 18:54:45 +0200
committerCarsten Teibes2014-10-10 18:54:45 +0200
commitbcfc59a74a04aa0dff376f8ef9460534b70ff74c (patch)
treef0d913d03b4d78775ca2533276e125d2365d777d /PKGBUILD
downloadaur-bcfc59a74a04aa0dff376f8ef9460534b70ff74c.tar.gz
[add] openraider-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..33e2c2c8d9e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
+
+pkgname=openraider-git
+pkgver=0.1.3.r71.gc6d13da
+pkgrel=1
+pkgdesc="Open Source Tomb Raider Engine (development version)"
+arch=('i686' 'x86_64')
+url="https://github.com/xythobuz/OpenRaider/"
+license=('GPL3')
+conflicts=("${pkgname%-*}")
+provides=("${pkgname%-*}=${pkgver%.r*}")
+makedepends=('git')
+depends=('sdl2_ttf' 'freealut')
+install="${pkgname%-*}.install"
+source=(${pkgname%-*}::"git+https://github.com/xythobuz/OpenRaider.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname%-*}
+ git describe --tags --long | sed 's/-20[0-9]*-/.r/;s/-/./'
+}
+
+prepare() {
+ cd ${pkgname%-*}
+
+ rm -rf build
+ mkdir build
+}
+
+build () {
+ cd ${pkgname%-*}/build
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+ make
+}
+
+package () {
+ make -C ${pkgname%-*}/build DESTDIR="$pkgdir/" install
+}