diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-17 17:10:16 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-17 17:54:21 +0100 |
commit | 92707c6a2fd1ee70b342d0339db319c05b0a3591 (patch) | |
tree | a7df63ec08107c5b8f4009b2cfadf3c3d5edbf5d /main | |
parent | 089036dc3716fb2a52282c9780f7798a534cac58 (diff) | |
download | aports-92707c6a2fd1ee70b342d0339db319c05b0a3591.tar.bz2 aports-92707c6a2fd1ee70b342d0339db319c05b0a3591.tar.xz |
main/ldb: build also for Python 3, add subpackage py3-
Diffstat (limited to 'main')
-rw-r--r-- | main/ldb/APKBUILD | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/main/ldb/APKBUILD b/main/ldb/APKBUILD index 5f740e684c..fa26c9095a 100644 --- a/main/ldb/APKBUILD +++ b/main/ldb/APKBUILD @@ -7,8 +7,8 @@ url="http://ldb.samba.org/" arch="all" license="LGPL-3.0-or-later" makedepends="libtirpc-dev tevent-dev py2-tevent tdb-dev py-tdb talloc-dev - python2-dev popt-dev cmocka-dev" -subpackages="$pkgname-dev py2-$pkgname:_py2 $pkgname-tools" + python2-dev python3-dev popt-dev cmocka-dev" +subpackages="$pkgname-dev py2-$pkgname:_py2 py3-$pkgname:_py3 $pkgname-tools" source="https://www.samba.org/ftp/pub/ldb/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" @@ -25,7 +25,8 @@ build() { --disable-rpath \ --bundled-libraries=NONE \ --builtin-libraries=replace \ - --with-modulesdir=/usr/lib/ldb/modules + --with-modulesdir=/usr/lib/ldb/modules \ + --extra-python=/usr/bin/python3 make } @@ -41,7 +42,15 @@ _py2() { mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python2* "$subpkgdir"/usr/lib/ - mv "$pkgdir"/usr/lib/libpyldb*.so.* "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/libpyldb-util.so.* "$subpkgdir"/usr/lib/ +} + +_py3() { + pkgdesc="Python 3 binding for the ldb library" + + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/libpyldb-util.cpython* "$subpkgdir"/usr/lib/ } tools() { |