From 4f83c730ba2935d67f5bcf36ac4ab81bb42832d8 Mon Sep 17 00:00:00 2001 From: Manuel Date: Mon, 17 Dec 2012 23:21:01 +0000 Subject: [PATCH] Sync --- lib32-talloc/PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 lib32-talloc/PKGBUILD diff --git a/lib32-talloc/PKGBUILD b/lib32-talloc/PKGBUILD new file mode 100644 index 0000000..71992b7 --- /dev/null +++ b/lib32-talloc/PKGBUILD @@ -0,0 +1,43 @@ +# Lib32 Packages for Chakra, part of chakra-project.org +# +# maintainer (x86_64): Giuseppe CalĂ  +# maintainer (x86_64): Anke Boersma + +_pkgbasename=talloc +pkgname=lib32-$_pkgbasename +pkgver=2.0.8 +pkgrel=1 +pkgdesc="talloc is a hierarchical pool based memory allocator with destructors (32-bit)" +arch=(x86_64) +license=('GPL3') +url="http://talloc.samba.org/" +source=(http://samba.org/ftp/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz) +depends=('lib32-glibc' $_pkgbasename) +makedepends=(gcc-multilib) +md5sums=('7857200b58a8617ca18fe2c91296cd93') + +build() { + export CC="gcc -m32" + + cd ${srcdir}/${_pkgbasename}-${pkgver} + + sed -i -e 's#python#python2#g' buildtools/bin/waf + + ./configure --prefix=/usr \ + --disable-python \ + --sysconfdir=/etc/samba \ + --localstatedir=/var \ + --enable-talloc-compat1 \ + --libdir=/usr/lib32 + + make +} + +package() { + cd ${srcdir}/talloc-${pkgver} + + make DESTDIR=$pkgdir/ install + + rm -rf "$pkgdir/usr/include" + rm -rf "$pkgdir/usr/share" +}