[add] openraider-git

This commit is contained in:
Carsten Teibes 2014-10-10 18:54:45 +02:00
commit bcfc59a74a
3 changed files with 69 additions and 0 deletions

19
.SRCINFO Normal file
View file

@ -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

39
PKGBUILD Normal file
View file

@ -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
}

11
openraider.install Normal file
View file

@ -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
}