PKGBUILDs/community/luasql-mysql/PKGBUILD
2009-10-09 21:15:33 -05:00

24 lines
788 B
Bash

# Maintainer: Anders Bergh <anders1@gmail.com>
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: