blob: ba64c3d7923a815f4df482352087a09ec0c0558c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# $Id: PKGBUILD 42492 2011-03-17 10:40:38Z jelle $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Anders Bergh <anders1@gmail.com>
pkgname=luasql-mysql
pkgver=2.1.1
pkgrel=6
pkgdesc="MySQL module for Lua"
arch=('i686' 'x86_64' 'mips64el')
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-$pkgver.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
}
|