aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-03-17 16:53:54 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-03-17 17:00:42 +0100
commit8db4a226dfcb3095048249e7d068e4bc99c91477 (patch)
tree18be3cafd03f7116051970dff0641e37755a575a
parentb1d76e9a13db5a7cbc482d2a270796a58a63571c (diff)
downloadaports-8db4a226dfcb3095048249e7d068e4bc99c91477.tar.bz2
aports-8db4a226dfcb3095048249e7d068e4bc99c91477.tar.xz
main/talloc: build also for Python 3, add subpackage py3-
-rw-r--r--main/talloc/APKBUILD15
1 files changed, 12 insertions, 3 deletions
diff --git a/main/talloc/APKBUILD b/main/talloc/APKBUILD
index 41a9765e9d..9b9d7aaf7a 100644
--- a/main/talloc/APKBUILD
+++ b/main/talloc/APKBUILD
@@ -8,8 +8,8 @@ url="http://talloc.samba.org"
arch="all"
license="LGPL-3.0-or-later"
replaces="samba-common"
-makedepends="$depends_dev python2-dev libxslt docbook-xsl"
-subpackages="$pkgname-dev py2-$pkgname:_py2 $pkgname-doc"
+makedepends="docbook-xsl libxslt python2-dev python3-dev"
+subpackages="$pkgname-dev py2-$pkgname:_py2 py3-$pkgname:_py3 $pkgname-doc"
source="http://samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.gz
always-libs.patch
"
@@ -29,7 +29,8 @@ build() {
--builtin-libraries=replace \
--disable-rpath \
--disable-rpath-install \
- --without-gettext
+ --without-gettext \
+ --extra-python=/usr/bin/python3
make
}
@@ -52,5 +53,13 @@ _py2() {
"$pkgdir"/usr/lib/python2* "$subpkgdir"/usr/lib/
}
+_py3() {
+ pkgdesc="Python 3 binding for libtalloc"
+
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libpytalloc-util.cpython* \
+ "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/
+}
+
sha512sums="e0c7e44f21b0b6510e04e09ce325d50323a0c6466acb6f301676e82f8812c61ed7f6faadac62380aa6338d54679fdf7afba7fb9ac774d0def96efbcf49d00523 talloc-2.1.11.tar.gz
dc7ce3fa5152c2e796b184bf2f7937f3424b9f1fece580195364d416ede47e655c04f1fa3ce33cd2a27d0764039ddbaec8d72c4bf3e96f6eac2c09743bed4b8c always-libs.patch"