diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-17 17:53:29 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-17 17:54:22 +0100 |
commit | 9bf9e99cb4819e950a252445adebb988d661367c (patch) | |
tree | 065b916a1e156f5859111a7894a85a20fe46ea19 /main | |
parent | 9206e60bed78301a58bbcde6c8b4ac498f4545f6 (diff) | |
download | aports-9bf9e99cb4819e950a252445adebb988d661367c.tar.bz2 aports-9bf9e99cb4819e950a252445adebb988d661367c.tar.xz |
main/tdb: build also for Python 3, add subpackage py3-tdb
Diffstat (limited to 'main')
-rw-r--r-- | main/tdb/APKBUILD | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/main/tdb/APKBUILD b/main/tdb/APKBUILD index 96c4332684..b4ae14c45d 100644 --- a/main/tdb/APKBUILD +++ b/main/tdb/APKBUILD @@ -7,8 +7,9 @@ url="http://tdb.samba.org/" arch="all" license="LGPL-3.0-or-later" depends_dev="python2" -makedepends="$depends_dev python2-dev docbook-xsl" -subpackages="$pkgname-dev py2-$pkgname:_py2 $pkgname-libs $pkgname-doc" +makedepends="$depends_dev python2-dev python3-dev docbook-xsl" +subpackages="$pkgname-dev py2-$pkgname:_py2 py3-$pkgname:_py3 + $pkgname-libs $pkgname-doc" source="http://samba.org/ftp/tdb/tdb-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" @@ -24,7 +25,8 @@ build() { --localstatedir=/var \ --disable-rpath \ --bundled-libraries=NONE \ - --builtin-libraries=replace + --builtin-libraries=replace \ + --extra-python=/usr/bin/python3 make } @@ -47,6 +49,13 @@ _py2() { mv "$pkgdir"/usr/lib/python2* "$subpkgdir"/usr/lib/ } +_py3() { + pkgdesc="Python 3 binding for the tdb library" + + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/ +} + libs() { default_libs replaces="tdb" |