diff options
author | Nemin32 | 2020-09-24 11:56:10 +0200 |
---|---|---|
committer | Nemin32 | 2020-09-24 11:57:57 +0200 |
commit | 74403dc812cc927411ed5daa7ea1102ba5338558 (patch) | |
tree | 587819e984f9d084a5a7b85ac8c11fcb33f3aa66 /PKGBUILD | |
download | aur-74403dc812cc927411ed5daa7ea1102ba5338558.tar.gz |
Initial commit for R.E.L.I.V.E. git package
R.E.L.I.V.E. is an open-source Abe's Oddysee / Abe's Exoddus
engine capable of running the game natively on Linux.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..335fcea744b9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# The following guidelines are specific to BZR, GIT, HG and SVN packages. +# Other VCS sources are not natively supported by makepkg yet. + +# Maintainer: Nemin <pergerlori@gmail.com> +pkgname=relive-git +pkgver=r3159.98bcf2a9 +pkgrel=1 +pkgdesc="An open-source Abe's Oddysee / Abe's Exoddus engine" +arch=('i686' 'x86_64') +url="https://aliveteam.github.io" +license=('unknown') +depends=('sdl2') +makedepends=('git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +install='relive-git.install' +source=('relive::git+https://github.com/AliveTeam/alive_reversing') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/${pkgname%-git}" + git submodule update --init --recursive + cmake -B build -S . +} + +package() { + cd "$srcdir/${pkgname%-git}/build" + make + mkdir -p "$pkgdir/usr/bin" + cp Source/AliveExe/AliveExeAE "$pkgdir/usr/bin/${pkgname%-git}" +} |