summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5c90d4c96eda8b8e8ca6639386214e07960151d (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
26
# Contributor: bitwave <aur [aeatt] oomlu [do0t] de>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sébastien Luttringer <seblu@archlinux.org>
# Contributor: Anders Bergh <anders1@gmail.com>
# Contributor: strata <strata@dropswitch.net>
pkgname=lua51-sql-sqlite
pkgver=2.3.0
pkgrel=4
arch=('i686' 'x86_64')
url='http://www.keplerproject.org/luasql/'
license=('MIT')
pkgdesc='SQLite module for Lua 5.1'
depends=('lua51' 'sqlite')
makedepends=('luarocks' 'git')

build() {
 luarocks --lua-version=5.1 --tree="${srcdir}" build luasql-sqlite3
}

package() {
  mkdir -p "$pkgdir/usr/lib/lua/5.1/luasql"
  install -m 755 "${srcdir}/lib/lua/5.1/luasql/sqlite3.so" \
    "${pkgdir}/usr/lib/lua/5.1/luasql/sqlite3.so"
}

# vim:set ts=2 sw=2 et: