aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-ldap
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-10-02 12:36:07 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-10-02 13:09:53 +0200
commitb763c5341de6bf3ac59f35351a375269f1e89da3 (patch)
treea63b2f69ccc6818f2cbfd24dfdf709a1d43deb96 /main/lua-ldap
parent42bca71946061ee3bc545e63b2e3cbc74ad99c3a (diff)
downloadaports-b763c5341de6bf3ac59f35351a375269f1e89da3.tar.bz2
aports-b763c5341de6bf3ac59f35351a375269f1e89da3.tar.xz
main/lua-ldap: upgrade to 1.2.3
Diffstat (limited to 'main/lua-ldap')
-rw-r--r--main/lua-ldap/APKBUILD34
1 files changed, 15 insertions, 19 deletions
diff --git a/main/lua-ldap/APKBUILD b/main/lua-ldap/APKBUILD
index cf4e963b97..e26266b8f8 100644
--- a/main/lua-ldap/APKBUILD
+++ b/main/lua-ldap/APKBUILD
@@ -1,41 +1,37 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-ldap
-pkgver=1.1.0
-pkgrel=2
+_pkgname=lualdap
+pkgver=1.2.3
+pkgrel=0
pkgdesc="Lua binding to ldap"
-url="http://www.keplerproject.org/lualdap/"
+url="https://github.com/bdellegrazie/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"
+makedepends="lua-dev openldap-dev"
+source="$_pkgname-$pkgver.tar.gz::https://github.com/bdellegrazie/$_pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
-_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
+ default_prepare || return 1
+
+ cd "$builddir"
sed -i -e '/LUA_VERSION_NUM/d' config
}
build() {
- cd "$_builddir"
+ cd "$builddir"
make OPENLDAP_LIB="-lldap -llber" \
WARN="-DLDAP_DEPRECATED -fPIC -ansi $CFLAGS" || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
local install_cmod=$(pkg-config --variable=INSTALL_CMOD lua)
make install LUA_LIBDIR="$pkgdir"/$install_cmod
}
-md5sums="5e104520c3f1333f38817a9fa1e76681 lualdap-1.1.0.tar.gz"
+md5sums="a9eda2f55640a8c816b4d4c6c3d7ef1b lualdap-1.2.3.tar.gz"
+sha256sums="efde10853429fe1c1c208604a352bee395ac897d407f9d7bf9efca62cff02f67 lualdap-1.2.3.tar.gz"
+sha512sums="51934d18d1ee97a0130545e657497e51542eef97c338df14e7171f94a2d6395fceb00313e1e64e46e6cdeedf85a17c63284595fdf6fbce8b7abce29d28f1b4a7 lualdap-1.2.3.tar.gz"