summaryrefslogtreecommitdiff
path: root/multilib/lib32-talloc/PKGBUILD
blob: 495fb37d1ac95e67d95543833d55a368f29f170a (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 58088 2011-11-06 13:20:57Z lcarlier $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

_pkgbasename=talloc
pkgname=lib32-$_pkgbasename
pkgver=2.0.7
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=('dbfb3146f4cc47054e13b8a2988299f9')

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
}