aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lua-lgi
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-12-04 13:19:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-12-05 07:42:49 +0000
commite4bddf9da5ad8a3af207273b6d98c16572038f52 (patch)
tree18c100f9be7f26eb55a17d42b026e610fde315f7 /testing/lua-lgi
parent6403fbc0af9f1cf897892a1fda86650500fa4b0e (diff)
downloadaports-e4bddf9da5ad8a3af207273b6d98c16572038f52.tar.bz2
aports-e4bddf9da5ad8a3af207273b6d98c16572038f52.tar.xz
testing/lua-lgi: new aport
Lua binding using gobject-introspection http://github.com/pavouk/lgi
Diffstat (limited to 'testing/lua-lgi')
-rw-r--r--testing/lua-lgi/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/lua-lgi/APKBUILD b/testing/lua-lgi/APKBUILD
new file mode 100644
index 0000000000..837b951c31
--- /dev/null
+++ b/testing/lua-lgi/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=lua-lgi
+pkgver=0.3
+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 wget 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="c0b1c724285f2962214bb79367c9591f lgi-0.3.tar.gz"