# Maintainer: Anders Bergh pkgname=luasql-mysql pkgver=2.1.1 pkgrel=3 pkgdesc="MySQL module for Lua" arch=('i686' 'x86_64') url="http://www.keplerproject.org/luasql/" license=('MIT') depends=('lua' 'libmysqlclient') # just changing the filename will make it download the old version, so change # this manually! source=(http://luaforge.net/frs/download.php/2686/luasql-2.1.1.tar.gz) md5sums=('63bdd57de4b9d1be336ba112d8cb69eb') build() { cd "$srcdir/luasql-$pkgver" make T=mysql PREFIX=/usr DRIVER_LIBS="$(mysql_config --libs)" \ DRIVER_INCS="$(mysql_config --include) -fPIC" install -Dm644 src/mysql.so $pkgdir/usr/lib/lua/5.1/luasql/mysql.so install -Dm644 doc/us/license.html $pkgdir/usr/share/licenses/$pkgname/license.html } # vim:set ts=2 sw=2 et: