PKGBUILD 1.02 KB
Newer Older
Manuel's avatar
Sync  
Manuel committed
1 2 3 4 5 6 7 8
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>

_pkgbasename=talloc
pkgname=lib32-$_pkgbasename
pkgver=2.0.8
9
pkgrel=2
Manuel's avatar
Sync  
Manuel committed
10 11 12 13 14
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)
15
depends=('lib32-glibc' $_pkgbasename=$pkgver)
Manuel's avatar
Sync  
Manuel committed
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 42 43
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"
}