diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /multilib/lib32-libldap/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'multilib/lib32-libldap/PKGBUILD')
-rw-r--r-- | multilib/lib32-libldap/PKGBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/multilib/lib32-libldap/PKGBUILD b/multilib/lib32-libldap/PKGBUILD new file mode 100644 index 000000000..2ea6c2202 --- /dev/null +++ b/multilib/lib32-libldap/PKGBUILD @@ -0,0 +1,61 @@ +# $Id: PKGBUILD 26599 2010-09-15 22:40:16Z bluewind $ +# Maintainer: +# Contributor: Judd Vinet <jvinet@zeroflux.org> + +_pkgbasename=libldap +pkgname=lib32-$_pkgbasename +pkgver=2.4.22 +pkgrel=3 +pkgdesc="Lightweight Directory Access Protocol (LDAP) client libraries (32-bit)" +arch=('x86_64') +license=('custom') +url="http://www.openldap.org/" +depends=('lib32-openssl' $_pkgbasename) +makedepends=(gcc-multilib) +options=('!libtool') +source=("ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-${pkgver}.tgz" + 'ntlm.patch') +md5sums=('ef01b52255ce8e3fbf8aa34f6fe7598b' + 'dfa9eb6f2fd9d0a3dab0e1860923489e') + +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" +} |