aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-ldap/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-24 11:48:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-24 11:48:01 +0000
commit5be0017ee74692f1973f1deba044d1a781831a71 (patch)
treeed0bdd6560f3271b957714eaf78d1b87549020a3 /main/lua-ldap/APKBUILD
parentace066a26ac60b846aa96e3be3be3e6d08e9ccba (diff)
downloadaports-5be0017ee74692f1973f1deba044d1a781831a71.tar.bz2
aports-5be0017ee74692f1973f1deba044d1a781831a71.tar.xz
main/lua-ldap: moved from testing
Diffstat (limited to 'main/lua-ldap/APKBUILD')
-rw-r--r--main/lua-ldap/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/lua-ldap/APKBUILD b/main/lua-ldap/APKBUILD
new file mode 100644
index 0000000000..f33168a5f9
--- /dev/null
+++ b/main/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=1
+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 OPENLDAP_LIB="-lldap -llber" || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install LUA_LIBDIR="$pkgdir"/usr/lib/lua/5.1
+}
+
+md5sums="5e104520c3f1333f38817a9fa1e76681 lualdap-1.1.0.tar.gz"