summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-22 14:39:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-22 14:39:52 +0000
commit7891b9822f3dbf5c6b5cd559e82d07a4eeee170d (patch)
tree9d78be5fd08dbca570ea5e68e6fe21e2c0413191
parentcf4ac4a59d4ca4803c7e265c3a4c8964b7f00c37 (diff)
downloadaports-7891b9822f3dbf5c6b5cd559e82d07a4eeee170d.tar.bz2
aports-7891b9822f3dbf5c6b5cd559e82d07a4eeee170d.tar.xz
testing/lua-ldap: new aport
Lua binding to ldap http://www.keplerproject.org/lualdap/ ref #1174
-rw-r--r--testing/lua-ldap/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/lua-ldap/APKBUILD b/testing/lua-ldap/APKBUILD
new file mode 100644
index 000000000..798ba1f6b
--- /dev/null
+++ b/testing/lua-ldap/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=lua-ldap
+pkgver=1.1.0
+pkgrel=0
+pkgdesc="Lua binding to ldap"
+url="http://www.keplerproject.org/lualdap/"
+arch="all"
+license="MIT"
+depends=""
+depends_dev=""
+makedepends="$depends_dev lua-dev openldap-dev"
+install=""
+subpackages=""
+source="http://files.luaforge.net/releases/lualdap/lualdap/LuaLDAP$pkgver/lualdap-$pkgver.tar.gz"
+
+_builddir="$srcdir"/lualdap-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ sed -i -e '/LUA_VERSION_NUM/d' config
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install LUA_LIBDIR="$pkgdir"/usr/lib/lua/5.1
+}
+
+md5sums="5e104520c3f1333f38817a9fa1e76681 lualdap-1.1.0.tar.gz"