diff options
author | Carsten Teibes | 2015-03-21 10:22:29 +0100 |
---|---|---|
committer | Carsten Teibes | 2015-03-21 10:22:29 +0100 |
commit | 533baf5c0a0ee3541a652a4a99c21db74c985f5e (patch) | |
tree | 5e3ec6bc6d2c74a32ef7b47b8b012366e5690121 | |
download | aur-533baf5c0a0ee3541a652a4a99c21db74c985f5e.tar.gz |
[add] solarus-git
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 53 |
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4ccf7b23c231 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = solarus-git + pkgdesc = An open-source Zelda-like 2D game engine used by the games zsxd and zsdx (development version) + pkgver = 1.3.0.r610.g227aa56 + pkgrel = 1 + url = http://www.solarus-engine.org/ + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = cmake + depends = sdl2_image + depends = sdl2_ttf + depends = luajit + depends = physfs + depends = openal + depends = libmodplug + depends = libvorbis + optdepends = zsxd-git: Default Quest + optdepends = zsdx-git: Another Quest + provides = solarus-engine + provides = solarus + conflicts = solarus + source = solarus-git::git+https://github.com/christopho/solarus.git + md5sums = SKIP + +pkgname = solarus-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c01c312b19b2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG +# Contributor: Fernando Carmona Varo <ferkiwi @t gmail dot com> +# Contributor: BenObiWan <benobiwan @t gmail dot com> + +pkgname=solarus-git +pkgver=1.3.0.r610.g227aa56 +pkgrel=1 +pkgdesc="An open-source Zelda-like 2D game engine used by the games zsxd and zsdx (development version)" +arch=('i686' 'x86_64') +url="http://www.solarus-engine.org/" +license=('GPL3') +depends=('sdl2_image' 'sdl2_ttf' 'luajit' 'physfs' 'openal' 'libmodplug' 'libvorbis') +makedepends=('git' 'cmake') +optdepends=('zsxd-git: Default Quest' + 'zsdx-git: Another Quest') +provides=('solarus-engine' 'solarus') +conflicts=('solarus') +source=($pkgname::'git+https://github.com/christopho/solarus.git') +md5sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./' +} + +prepare() { + cd $pkgname + + rm -rf build + mkdir build + + # small fix + sed 's/"${SDL2MAIN_LIBRARY}"//' -i tests/CMakeLists.txt +} + +build() { + cd $pkgname/build + + cmake .. -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=Release \ + -DDEFAULT_QUEST=/usr/share/solarus/zsdx + make +} + +check() { + make -C $pkgname/build test +} + +package() { + make -C $pkgname/build DESTDIR="$pkgdir/" install + + # provide compatibility with old quest packages + ln -s solarus_run "$pkgdir"/usr/bin/solarus +} |