diff options
author | Dan Theisen <djt@hxx.in> | 2018-09-28 01:47:44 -0700 |
---|---|---|
committer | Dan Theisen <djt@hxx.in> | 2018-09-28 01:47:44 -0700 |
commit | d0160a7d02d68accc2649d5b9cb865911261daa9 (patch) | |
tree | 79b450e6a0a942b59551ae00c2e64fe1cee82df6 /user/lua-lgi | |
parent | a6a396f7744d63f47052d716fe1ac8f460eb6e12 (diff) | |
download | packages-d0160a7d02d68accc2649d5b9cb865911261daa9.tar.gz packages-d0160a7d02d68accc2649d5b9cb865911261daa9.tar.bz2 packages-d0160a7d02d68accc2649d5b9cb865911261daa9.tar.xz packages-d0160a7d02d68accc2649d5b9cb865911261daa9.zip |
user/lua-lgi: new package, not sure how we are handling lua
Diffstat (limited to 'user/lua-lgi')
-rw-r--r-- | user/lua-lgi/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/user/lua-lgi/APKBUILD b/user/lua-lgi/APKBUILD new file mode 100644 index 000000000..857fa26be --- /dev/null +++ b/user/lua-lgi/APKBUILD @@ -0,0 +1,35 @@ +# 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" +license="MIT" +options="!check" # checks require dbus +depends="" +makedepends="glib-dev gobject-introspection-dev libffi-dev" +subpackages="$pkgname-doc" +source="lgi-$pkgver.tar.gz::https://github.com/pavouk/lgi/archive/$pkgver.tar.gz" + +builddir="$srcdir"/lgi-$pkgver +build() { + cd "$builddir" + make PREFIX=/usr LUA_CFLAGS="$(pkg-config --cflags lua)" +} + +check() { + cd "$builddir" + make -C "$srcdir"/build-$_i check +} + +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/ +} + +sha512sums="755a96b78530f42da6d4e2664f8e37cb07a356419e7e6448003c3f841c9d98ad18b851715d9eb203ea7eb27b13ec46223fa8a1c90a99fd12960ce85b0a695335 lgi-0.9.2.tar.gz" |