aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lua5.2-sql-postgres
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-07 14:31:13 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-07 14:31:13 +0000
commitf25ef14ab097e7dbffe5eaa6cef38c2f8dc0374a (patch)
tree40b43f22708dd891290e74d0803854c92082f966 /testing/lua5.2-sql-postgres
parent27584cc226305d959e14998f14f81d8694368c68 (diff)
downloadaports-f25ef14ab097e7dbffe5eaa6cef38c2f8dc0374a.tar.bz2
aports-f25ef14ab097e7dbffe5eaa6cef38c2f8dc0374a.tar.xz
testing/lua5.2-sql-postgres: new aport
Lua 5.2 SQL driver for postgresql http://www.keplerproject.org/luasql/
Diffstat (limited to 'testing/lua5.2-sql-postgres')
-rw-r--r--testing/lua5.2-sql-postgres/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/lua5.2-sql-postgres/APKBUILD b/testing/lua5.2-sql-postgres/APKBUILD
new file mode 100644
index 0000000000..9bbf2ee33c
--- /dev/null
+++ b/testing/lua5.2-sql-postgres/APKBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Natanael Copa <natanael.copa@gmail.com>
+_luaver=5.2
+pkgname=lua$_luaver-sql-postgres
+pkgver=2.3.0
+pkgrel=0
+pkgdesc="Lua $_luaver SQL driver for postgresql"
+url="http://www.keplerproject.org/luasql/"
+arch="all"
+license="MIT"
+depends=""
+makedepends="lua$_luaver-dev postgresql-dev"
+install=
+subpackages=
+source="luasql-$pkgver.tar.gz::https://github.com/keplerproject/luasql/archive/v$pkgver.tar.gz"
+
+_driver=postgres
+_pkg=libpq
+
+build() {
+ cd "$srcdir"/luasql-$pkgver
+ local _libs="$( pkg-config $_pkg --libs )" || return 1
+ local _lua_cflags="$( pkg-config lua$_luaver --cflags )" || return 1
+ make CFLAGS="-fPIC $CFLAGS $_lua_cflags" \
+ T=$_driver \
+ DRIVER_LIBS="$_libs" \
+ || return 1
+}
+
+package() {
+ cd "$srcdir"/luasql-$pkgver
+ install -D src/$_driver.so \
+ "$pkgdir"/usr/lib/lua/$_luaver/luasql/$_driver.so \
+ || return 1
+}
+
+md5sums="af9f0f3a2313a1fcf88c40700092048d luasql-2.3.0.tar.gz"
+sha256sums="e173ff7b17a2757951b4b2f67d3b1bfe04caad7185b68cffa7758ce822e25e9f luasql-2.3.0.tar.gz"
+sha512sums="62309cf6241ffab1ed32e718536a5c986168a7bb6fcf2cf55e884db5043d5ec473bbbb7c93b399dfc0a19f282e850f742452583ad0d973661a7f672b0f8da2d5 luasql-2.3.0.tar.gz"