mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
63 lines
1.6 KiB
Bash
63 lines
1.6 KiB
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
_pkgbasename=libldap
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=2.4.33
|
|
pkgrel=1
|
|
pkgdesc="Lightweight Directory Access Protocol (LDAP) client libraries (32-bit)"
|
|
arch=('x86_64')
|
|
license=('custom')
|
|
url="http://www.openldap.org/"
|
|
depends=('lib32-openssl' $_pkgbasename=$pkgver)
|
|
makedepends=(gcc-multilib)
|
|
options=('!libtool')
|
|
source=("ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-${pkgver}.tgz"
|
|
'ntlm.patch')
|
|
md5sums=('5adae44897647c15ce5abbff313bc85a'
|
|
'b75109064236048da33c7bbd5b48196f')
|
|
|
|
build() {
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
cd ${srcdir}/openldap-${pkgver}
|
|
|
|
patch -Np1 -i ${srcdir}/ntlm.patch
|
|
|
|
./configure --prefix=/usr \
|
|
--libexecdir=/usr/sbin \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var/lib/openldap \
|
|
--enable-crypt --enable-dynamic \
|
|
--with-threads --disable-wrappers \
|
|
--disable-spasswd --without-cyrus-sasl \
|
|
--disable-bdb --disable-hdb --libdir=/usr/lib32
|
|
|
|
cd include
|
|
make
|
|
|
|
cd ../libraries
|
|
make depend
|
|
make
|
|
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/openldap-${pkgver}
|
|
|
|
cd include
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
cd ../libraries
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin} "$pkgdir/etc"
|
|
mkdir -p "$pkgdir/usr/share/licenses"
|
|
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|