diff options
author | root <root@rshg054.dnsready.net> | 2013-05-27 00:29:16 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-05-27 00:29:16 -0700 |
commit | b4ca83da72ffb5800852339f6efe5a59c16e9f94 (patch) | |
tree | 3ed149ced423d2629e0b3a71f0b1e2cf3f6ced70 /pcr/lua51-sql-mysql | |
parent | 99ee54f2484aadc464e997e54aa9c7ca7ecde198 (diff) |
Mon May 27 00:29:16 PDT 2013
Diffstat (limited to 'pcr/lua51-sql-mysql')
-rw-r--r-- | pcr/lua51-sql-mysql/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/lua51-sql-mysql/PKGBUILD b/pcr/lua51-sql-mysql/PKGBUILD new file mode 100644 index 000000000..04ffee934 --- /dev/null +++ b/pcr/lua51-sql-mysql/PKGBUILD @@ -0,0 +1,31 @@ +# $Id$ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Sébastien Luttringer <seblu@archlinux.org> +# Contributor: Anders Bergh <anders1@gmail.com> + +pkgname=lua51-sql-mysql +pkgdesc='MySQL module for Lua 5.1' +pkgver=2.2.0 +pkgrel=3 +arch=('i686' 'x86_64') +url='http://www.keplerproject.org/luasql/' +license=('MIT') +depends=('lua51' 'libmariadbclient') +source=("https://github.com/downloads/keplerproject/luasql/luasql-$pkgver.tar.gz") +md5sums=('59d72db444c6369c936d4f03694db6b7') + +build() { + cd luasql-$pkgver + sed -i '24s,$,/lua5.1,' config + msg2 'Building MySQL support' + make T=mysql PREFIX=/usr DRIVER_LIBS="$(mysql_config --libs)" \ + DRIVER_INCS="$(mysql_config --include) -fPIC" +} + +package() { + cd luasql-$pkgver + 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: |