summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Teibes2014-10-10 18:54:45 +0200
committerCarsten Teibes2014-10-10 18:54:45 +0200
commitbcfc59a74a04aa0dff376f8ef9460534b70ff74c (patch)
treef0d913d03b4d78775ca2533276e125d2365d777d
downloadaur-bcfc59a74a04aa0dff376f8ef9460534b70ff74c.tar.gz
[add] openraider-git
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD39
-rw-r--r--openraider.install11
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..71d055c5058
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = openraider-git
+ pkgdesc = Open Source Tomb Raider Engine (development version)
+ pkgver = 0.1.3.r71.gc6d13da
+ pkgrel = 1
+ url = https://github.com/xythobuz/OpenRaider/
+ install = openraider.install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ depends = sdl2_ttf
+ depends = freealut
+ provides = openraider=0.1.3
+ conflicts = openraider
+ source = openraider::git+https://github.com/xythobuz/OpenRaider.git
+ md5sums = SKIP
+
+pkgname = openraider-git
+
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
+}
diff --git a/openraider.install b/openraider.install
new file mode 100644
index 00000000000..114046f4000
--- /dev/null
+++ b/openraider.install
@@ -0,0 +1,11 @@
+
+post_install() {
+ echo "OpenRaider needs a config file to function. You can copy the default config file"
+ echo "and change it to suit your needs:"
+ echo " $ cp -r /usr/share/OpenRaider/ ~/.OpenRaider"
+ echo " $ \$EDITOR ~/.OpenRaider/OpenRaider.ini"
+}
+
+post_upgrade() {
+ post_install
+}