# Maintainer: Francesco Marinucci pkgname=lua-expat _pkgname=luaexpat pkgver=1.3.0 pkgrel=2 pkgdesc='SAX XML parser based on the Expat library' arch=('x86_64') url='http://matthewwild.co.uk/projects/luaexpat/' license=('MIT') depends=('lua' 'expat') source=("http://matthewwild.co.uk/projects/luaexpat/luaexpat-$pkgver.tar.gz" 'config.51') md5sums=('3c20b5795e7107f847f8da844fbfe2da' '64abbf5b602e0e31b68db2925a5e6b2f') build() { cd ${_pkgname}-${pkgver} make CFLAGS='-DLUA_32BITS' } package() { cd ${_pkgname}-${pkgver} make DESTDIR="$pkgdir" install install -Dm0644 doc/us/license.html "$pkgdir/usr/share/licenses/$pkgname/license.html" }