diff options
-rw-r--r-- | main/lua-ldap/APKBUILD | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/main/lua-ldap/APKBUILD b/main/lua-ldap/APKBUILD index f33168a5f9..cf4e963b97 100644 --- a/main/lua-ldap/APKBUILD +++ b/main/lua-ldap/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lua-ldap pkgver=1.1.0 -pkgrel=1 +pkgrel=2 pkgdesc="Lua binding to ldap" url="http://www.keplerproject.org/lualdap/" arch="all" @@ -28,12 +28,14 @@ prepare() { build() { cd "$_builddir" - make OPENLDAP_LIB="-lldap -llber" || return 1 + make OPENLDAP_LIB="-lldap -llber" \ + WARN="-DLDAP_DEPRECATED -fPIC -ansi $CFLAGS" || return 1 } package() { cd "$_builddir" - make install LUA_LIBDIR="$pkgdir"/usr/lib/lua/5.1 + local install_cmod=$(pkg-config --variable=INSTALL_CMOD lua) + make install LUA_LIBDIR="$pkgdir"/$install_cmod } md5sums="5e104520c3f1333f38817a9fa1e76681 lualdap-1.1.0.tar.gz" |