From 4b8f9753532499d914aa1d1b5b6f561612c9ccd6 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 28 Jan 2013 13:17:13 +0000 Subject: main/lua-lgi: moved from testing --- main/lua-lgi/APKBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 main/lua-lgi/APKBUILD (limited to 'main/lua-lgi') diff --git a/main/lua-lgi/APKBUILD b/main/lua-lgi/APKBUILD new file mode 100644 index 000000000..5341a1513 --- /dev/null +++ b/main/lua-lgi/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Natanael Copa +# Maintainer: Natanael Copa +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" -- cgit v1.2.3