updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / lib32-talloc / PKGBUILD
blob8b9cd73fd51ae70a04e546389518f4fdfcfa58cd
1 # $Id: PKGBUILD 58087 2011-11-06 13:20:34Z lcarlier $
2 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
4 _pkgbasename=talloc
5 pkgname=lib32-$_pkgbasename
6 pkgver=2.0.7
7 pkgrel=1
8 pkgdesc="A hierarchical pool based memory allocator with destructors (32-bit)"
9 arch=('x86_64')
10 license=('GPL3')
11 url="http://talloc.samba.org/"
12 source=(http://samba.org/ftp/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz)
13 depends=('lib32-glibc' $_pkgbasename)
14 makedepends=('gcc-multilib' 'python2')
15 md5sums=('dbfb3146f4cc47054e13b8a2988299f9')
17 build() {
18   export CC="gcc -m32"
20   cd ${srcdir}/${_pkgbasename}-${pkgver}
22    sed -i -e 's#python#python2#g' buildtools/bin/waf
24   ./configure --prefix=/usr \
25   --disable-python \
26   --sysconfdir=/etc/samba \
27   --localstatedir=/var \
28   --enable-talloc-compat1 \
29   --libdir=/usr/lib32
31   make
34 package() {
35   cd ${srcdir}/${_pkgbasename}-${pkgver}
37   make DESTDIR=$pkgdir/ install
39   rm -rf $pkgdir/usr/include