aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-lgi/APKBUILD
blob: 5341a15131a0127ac999232f6973f8b480ab1d11 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-lgi
pkgver=0.6.2
pkgrel=0
pkgdesc="Lua binding using gobject-introspection"
url="http://github.com/pavouk/lgi"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="lua-dev gtk+-dev gobject-introspection-dev"
install=""
subpackages="$pkgname-doc"
source="https://github.com/downloads/pavouk/lgi/lgi-$pkgver.tar.gz"

_builddir="$srcdir"/lgi-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make PREFIX=/usr
}

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

md5sums="9ae2c0740e9ea536b6b6afacea5bd21b  lgi-0.6.2.tar.gz"