aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-lgi
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-01-28 13:17:13 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-01-28 13:17:13 +0000
commit4b8f9753532499d914aa1d1b5b6f561612c9ccd6 (patch)
tree5e483778b5a6a011ca5d15fcacc00ec9713747fb /main/lua-lgi
parent3bd5954948d0cd3d9a4a07791b6acaa6fd7cc76e (diff)
downloadaports-4b8f9753532499d914aa1d1b5b6f561612c9ccd6.tar.bz2
aports-4b8f9753532499d914aa1d1b5b6f561612c9ccd6.tar.xz
main/lua-lgi: moved from testing
Diffstat (limited to 'main/lua-lgi')
-rw-r--r--main/lua-lgi/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/main/lua-lgi/APKBUILD b/main/lua-lgi/APKBUILD
new file mode 100644
index 0000000000..5341a15131
--- /dev/null
+++ b/main/lua-lgi/APKBUILD
@@ -0,0 +1,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"