blob: 54aff4c20743b6de09919bcab53bbb3bf5854c7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# $Id: PKGBUILD 61380 2011-12-29 16:34:45Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Anders Bergh <anders1@gmail.com>
pkgname=luasql-mysql
pkgver=2.2.0
pkgrel=1
pkgdesc="MySQL module for Lua"
arch=('i686' 'x86_64')
url="http://www.keplerproject.org/luasql/"
license=('MIT')
depends=('lua' 'libmysqlclient')
source=(https://github.com/downloads/keplerproject/luasql/luasql-$pkgver.tar.gz)
md5sums=('59d72db444c6369c936d4f03694db6b7')
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
}
|