summaryrefslogtreecommitdiff
path: root/user/lua-lgi/APKBUILD
blob: be1bd5334f66d1b3b0a1fca30b3ca10b6935b2eb (plain) (blame)
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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=lua-lgi
pkgver=0.9.2
pkgrel=0
pkgdesc="Dynamic Lua binding to GObject libraries using GObject-Introspection"
url="https://github.com/pavouk/lgi"
arch="all"
options="!check"  # Test suite requires D-Bus.
license="MIT"
depends=""
makedepends="glib-dev gobject-introspection-dev libffi-dev lua5.3-dev"
subpackages="$pkgname-doc"
source="lgi-$pkgver.tar.gz::https://github.com/pavouk/lgi/archive/$pkgver.tar.gz"
builddir="$srcdir"/lgi-$pkgver

build() {
	make PREFIX=/usr LUA_VERSION="5.3" \
		LUA_CFLAGS="$(pkg-config --cflags lua)"
}

check() {
	make check
}

package() {
	make install PREFIX=/usr LUA_VERSION="5.3" DESTDIR="$pkgdir"
	
	mkdir -p "$pkgdir"/usr/share/doc/lua-lgi
	cp -r docs/* samples "$pkgdir"/usr/share/doc/lua-lgi/
}

sha512sums="755a96b78530f42da6d4e2664f8e37cb07a356419e7e6448003c3f841c9d98ad18b851715d9eb203ea7eb27b13ec46223fa8a1c90a99fd12960ce85b0a695335  lgi-0.9.2.tar.gz"