# $Id: PKGBUILD 211155 2014-04-17 20:01:41Z tpowa $ # Maintainer: # Contributor: Tobias Powalowski pkgname=talloc pkgver=2.1.0 pkgrel=2 pkgdesc="Hierarchical pool based memory allocator with destructors" arch=('i686' 'x86_64') license=('GPL3') url="http://talloc.samba.org/" depends=('glibc') makedepends=('python2' 'docbook-xsl') optdepends=('python2: for python bindings') source=("http://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.gz") prepare() { cd "${srcdir}/${pkgname}-${pkgver}" sed -i -e 's#python#python2#g' buildtools/bin/waf } build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr \ --sysconfdir=/etc/samba \ --localstatedir=/var \ --bundled-libraries=NONE \ --builtin-libraries=replace \ --enable-talloc-compat1 make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install } md5sums=('85a69bfb5808fcadf378bd9eadb1f9c2')