summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0349aa983aa52a3fd80692f51e475a411ef9cd48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Nemin <pergerlori@gmail.com>
pkgname=relive-git
pkgver=r3641.fcce1105
pkgrel=3
pkgdesc="An open-source Abe's Oddysee / Abe's Exoddus engine"
arch=('i686' 'x86_64')
url="https://aliveteam.github.io"
license=('unknown')
depends=('sdl2' 'zenity' 'glew' 'fluidsynth')
makedepends=('git' 'cmake')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
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 -DCMAKE_INSTALL_PREFIX="$pkgdir/usr/" -B build -S .
}

package() {
  cd "$srcdir/${pkgname%-git}/build"
  make relive
  cd "$srcdir/${pkgname%-git}/build/Source/relive"
  make install
  cd "$srcdir/${pkgname%-git}/build/assets"
  make install
}