summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b260c8cd73ae2d1b8d6377ec38b72c7ae9b7d8bc (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=3
arch=('i686' 'x86_64')
url='http://www.keplerproject.org/luasql/'
license=('MIT')
pkgdesc='SQLite module for Lua 5.1'
depends=('lua51' 'sqlite')
makedepends=('luarocks')

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: