blob: cf4e963b979e2740c607bbab34f6527252f2dd48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-ldap
pkgver=1.1.0
pkgrel=2
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" \
WARN="-DLDAP_DEPRECATED -fPIC -ansi $CFLAGS" || return 1
}
package() {
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"
|