# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=lua-lgi pkgver=0.7.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 libffi-dev" install="" subpackages="$pkgname-doc" source="lgi-$pkgver.tar.gz::https://github.com/pavouk/lgi/archive/$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="f41902695c3d8ef40312d7c654885bf3 lgi-0.7.2.tar.gz" sha256sums="76a590f36fe1389d69d116e15ceb6983eab346a16702e8f41604ac73de3b1446 lgi-0.7.2.tar.gz" sha512sums="e661e13d6f539c2c434a6b0db9e622ee4af3c039a6488617954643f0b46a908068a14e6d37ff44437fbe5b4cb62863699107ab533aca121d4b8d584ca83c35fc lgi-0.7.2.tar.gz"