updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / luasql-sqlite3 / PKGBUILD
blobc58345184ee18f159048e44d5ce50079ecef976f
1 # Maintainer: Pierre Chapuis <catwell at archlinux dot us>
2 # Contributor: Anders Bergh <anders1 at gmail dot com>
4 pkgname=luasql-sqlite3
5 pkgver=2.1.1
6 pkgrel=3
7 pkgdesc='sqlite3 module for Lua'
8 arch=(i686 x86_64 ppc)
9 url='http://www.keplerproject.org/luasql/'
10 license=('MIT')
11 depends=('lua' 'sqlite3')
12 source=("http://luaforge.net/frs/download.php/2686/luasql-$pkgver.tar.gz")
13 md5sums=('63bdd57de4b9d1be336ba112d8cb69eb')
15 build() {
16   cd $srcdir/luasql-$pkgver
17   make T=sqlite3 PREFIX=/usr DRIVER_LIBS=-lsqlite3 DRIVER_INCS= \
18    CC='gcc -fPIC'
19   install -Dm0644 src/sqlite3.so $pkgdir/usr/lib/lua/5.1/luasql/sqlite3.so
20   install -Dm0644 doc/us/license.html \
21    $pkgdir/usr/share/licenses/$pkgname/license.html