updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / lua-gtk / PKGBUILD
blob35db5215b6a044604052eedfce245f075fcf0659
1 # Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>
2 # Maintainer: Laszlo Papp <djszapi at archlinux us>
4 pkgname=lua-gtk
5 pkgver=0.9
6 pkgrel=3
7 pkgdesc="This package contains the Lua bindings for the Gtk library."
8 arch=('i686' 'x86_64')
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')
20 build()
22         cd $srcdir/$pkgname-$pkgver
23         patch -p1 < $startdir/patch
24         ./configure.lua
25         sed -i "s/^\(CFLAGS.*\)$/\1 \$(LIBFFI_LIB)/;s|/usr/local/|/${pkgdir}/usr/|g" build/*/config.make
26         make || return 1
27         make DESTDIR="$pkgdir" install || return 1