summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 74b772cea759b3627da7be9264111252b0f798aa (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
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Matthias Gatto <uso.cosmo.ray at gmail dot com>

pkgname=yirl-git
pkgver=r2693.0e055645
pkgrel=1
pkgdesc='Modular Game Engine'


arch=('x86_64' 'aarch64')

url='http://github.com/cosmo-ray/yirl'

licence=(LGPL3)

pkgver() {
	 cd "${srcdir}/yirl"
	 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

makedepends=(gcc make autoconf cmake git)
depends=(lua json-c sdl2 sdl2_image sdl2_ttf sdl2_mixer perl)

source=(git+https://github.com/cosmo-ray/yirl.git)

options=(!buildflags)

sha256sums=("SKIP")

build() {
	 cd "${srcdir}/yirl"
	 git submodule update --init --recursive
	 ./configure --ndebug --prefix="$pkgdir/usr/"
	 make sdl-gpu-build
	 cd tinycc
	 ./configure --extra-cflags="-fPIC -O2"
	 make
	 cd ..
	 make quickjs-2020-03-16
	 make yirl-loader
}

package() {
	 cd "${srcdir}/yirl"
	 make install
	 make install_extra_modules
	 install -D "${srcdir}/yirl/LICENSE" "$pkgdir/usr/share/licenses/yirl/LICENSE"
}