mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
25 lines
788 B
Bash
25 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:
|