summaryrefslogtreecommitdiff
path: root/multilib/lib32-talloc/PKGBUILD
blob: 16eabebd2ed31cf1b31019a01211a5b16bd8ef80 (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
# $Id: PKGBUILD 56759 2011-10-11 21:04:58Z lcarlier $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

_pkgbasename=talloc
pkgname=lib32-$_pkgbasename
pkgver=2.0.5
pkgrel=1
pkgdesc="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 python2)
md5sums=('6e3fdfbc43dde8ccba27b6af894b8fb2')

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}/${_pkgbasename}-${pkgver}

  make DESTDIR=$pkgdir/ install

  rm -rf $pkgdir/usr/include
}