aboutsummaryrefslogtreecommitdiffstats
path: root/testing/luasql-postgres/APKBUILD
blob: 36756ca6573732bb11e2399ba36e5c26ec54bc11 (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
27
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Mika Havela <mika.havela@gmail.com>
pkgname=luasql-postgres
pkgver=2.1.1
pkgrel=0
pkgdesc="LuaSQL is a simple interface from Lua to a DBMS"
url="http://www.keplerproject.org/luasql/"
license="MIT"
depends="lua"
makedepends="lua-dev postgresql-dev"
install=
subpackages=
source="http://luaforge.net/frs/download.php/2686/luasql-$pkgver.tar.gz
	config.new
	"

build() {
	cd "$srcdir/luasql-$pkgver"
	cp "$srcdir/config.new" config

	make || return 1
	mkdir -p "$pkgdir"/usr/lib/lua/5.1/luasql
	cp src/postgres.so "$pkgdir"/usr/lib/lua/5.1/luasql
}

md5sums="63bdd57de4b9d1be336ba112d8cb69eb  luasql-2.1.1.tar.gz
6ee28fa90394da6a7e38cf507d56ba80  config.new"