diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 39 | ||||
-rw-r--r-- | openraider.install | 11 |
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..71d055c5058a --- /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 000000000000..33e2c2c8d9eb --- /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 000000000000..114046f4000d --- /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 +} |