blob: d4715c034c6bc47ecba7b72ff561921684b3147b (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: George Rawlinson <grawlinson@archlinux.org>
_android_arch=aarch64
pkgname=android-${_android_arch}-openldap
pkgver=2.6.8
pkgrel=1
arch=('any')
pkgdesc="Lightweight Directory Access Protocol (LDAP) (Android ${_android_arch})"
url="https://www.openldap.org/"
license=('custom')
groups=('android-openldap-bootstrap')
depends=("android-${_android_arch}-libsasl"
"android-${_android_arch}-libtool"
"android-${_android_arch}-unixodbc"
"android-${_android_arch}-libsodium")
makedepends=('android-configure'
'util-linux'
'chrpath')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-${pkgver}.tgz"
'0001-Add-missing-headers.patch')
sha256sums=('48969323e94e3be3b03c6a132942dcba7ef8d545f2ad35401709019f696c3c4e'
'0d8f2c1011678df0e42e9691ab66565ae1b45c9b97018a6069d57665392e2b0c')
prepare() {
cd "${srcdir}/openldap-${pkgver}"
source android-env ${_android_arch}
patch -Np1 -i ../0001-Add-missing-headers.patch
autoconf -fiv
}
build() {
cd "${srcdir}/openldap-${pkgver}"
source android-env ${_android_arch}
export CFLAGS="${CFLAGS} -DMDB_USE_ROBUST=0"
export CXXFLAGS="${CXXFLAGS} -DMDB_USE_ROBUST=0"
export CPPFLAGS="${CXXFLAGS}"
android-${_android_arch}-configure \
--libexecdir="${ANDROID_PREFIX_LIB}" \
--sysconfdir="${ANDROID_PREFIX_ETC}" \
--localstatedir="${ANDROID_PREFIX_LIB}/openldap" \
--sbindir="${ANDROID_PREFIX_BIN}" \
--with-yielding_select=yes \
--enable-slapd=no \
--enable-dynamic \
--enable-ipv6 \
--enable-local \
--enable-syslog \
--with-argon2=libsodium \
--with-cyrus-sasl
make $MAKEFLAGS
}
package() {
cd "${srcdir}/openldap-${pkgver}"
source android-env ${_android_arch}
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/${ANDROID_PREFIX_BIN}"
rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}"
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|