aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/talloc/APKBUILD21
1 files changed, 17 insertions, 4 deletions
diff --git a/main/talloc/APKBUILD b/main/talloc/APKBUILD
index 41172c8f52..d5f6470242 100644
--- a/main/talloc/APKBUILD
+++ b/main/talloc/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=talloc
pkgver=2.1.0
-pkgrel=1
+pkgrel=2
pkgdesc="A memory pool management library"
url="http://talloc.samba.org/"
arch="all"
@@ -10,9 +10,9 @@ license="LGPL3+"
depends=
depends_dev=
replaces="samba-common"
-makedepends="$depends_dev gettext-dev"
+makedepends="$depends_dev python-dev"
install=""
-subpackages="$pkgname-dev"
+subpackages="$pkgname-dev py-$pkgname:_py"
source="http://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.gz
always-libs.patch
fix-libreplace.patch
@@ -35,8 +35,15 @@ build() {
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --disable-python \
--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 \
|| return 1
make || return 1
}
@@ -46,6 +53,12 @@ package() {
make DESTDIR="$pkgdir" install || return 1
}
+_py() {
+ pkgdesc="Python binding for libtalloc"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
+}
+
md5sums="85a69bfb5808fcadf378bd9eadb1f9c2 talloc-2.1.0.tar.gz
10304afbc3b00346238bf5a969227c68 always-libs.patch
b8c06c1a37bce8a7feea3b6896483da0 fix-libreplace.patch"