diff options
author | Shackra Sislock <jorgean@lavabit.com> | 2013-05-26 19:39:28 -0600 |
---|---|---|
committer | Shackra Sislock <jorgean@lavabit.com> | 2013-05-26 19:39:28 -0600 |
commit | 10461839d84ac9f146ef05300fe834552aad7f10 (patch) | |
tree | df6f367838488540f436840c8ff004acc0bc4023 /pcr/lua51-sql-mysql | |
parent | ebd9b96b19db1ed80ceec72a3560b416abc659e0 (diff) | |
download | abslibre-10461839d84ac9f146ef05300fe834552aad7f10.tar.gz abslibre-10461839d84ac9f146ef05300fe834552aad7f10.tar.bz2 abslibre-10461839d84ac9f146ef05300fe834552aad7f10.zip |
adding lua51-sql-mysql (ryzom dependency)
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: |