1 # Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>
2 # Maintainer: Laszlo Papp <djszapi at archlinux us>
7 pkgdesc="This package contains the Lua bindings for the Gtk library."
9 url="http://lua-gtk.luaforge.net/en/index.html"
10 license=('LGPL' 'MIT')
11 depends=('lua' 'libffi' 'luafilesystem' 'luaexpat' 'lua-bit' 'luadoc' 'cmph')
12 makedepends=('gccxml')
13 source=('http://luaforge.net/frs/download.php/3654/lua-gtk-0.9.tar.gz' 'patch')
15 md5sums=('2370a0b4e55427b40f36b7c7d247bd63'
16 '1e7a795664267b716716518e4f702ecf')
17 sha256sums=('81dcc75ce7d6672515f024c5ac054deac95f59c61ad84cc6e0fa433af7216732'
18 '950cb0f1f993ec99bb14f6beed641fe87526f80ca40cb13205521ef5bab7a76d')
22 cd $srcdir/$pkgname-$pkgver
23 patch -p1 < $startdir/patch
25 sed -i "s/^\(CFLAGS.*\)$/\1 \$(LIBFFI_LIB)/;s|/usr/local/|/${pkgdir}/usr/|g" build/*/config.make
27 make DESTDIR="$pkgdir" install || return 1