# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=talloc pkgver=2.1.10 pkgrel=0 pkgdesc="A memory pool management library" url="http://talloc.samba.org/" arch="all" license="LGPL3+" replaces="samba-common" makedepends="$depends_dev python2-dev libxslt docbook-xsl" subpackages="$pkgname-dev py-$pkgname:_py $pkgname-doc" source="http://samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.gz always-libs.patch " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --bundled-libraries=NONE \ --builtin-libraries=replace \ --disable-rpath \ --disable-rpath-install \ --without-gettext make } check() { cd "$builddir" make check } package() { make -C "$builddir" DESTDIR="$pkgdir" install } _py() { pkgdesc="Python binding for libtalloc" replaces="talloc" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libpytalloc-util.so.* \ "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } sha512sums="215e70056f37ade8f67c20ab2b79dcb40f071989ec908de81144f8a0160637bbdec9a94123dea73475ba42425415df4c1eb8c1986485a00e2e03323719a03ce3 talloc-2.1.10.tar.gz dc7ce3fa5152c2e796b184bf2f7937f3424b9f1fece580195364d416ede47e655c04f1fa3ce33cd2a27d0764039ddbaec8d72c4bf3e96f6eac2c09743bed4b8c always-libs.patch"