diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-17 17:03:33 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-17 17:54:21 +0100 |
commit | 089036dc3716fb2a52282c9780f7798a534cac58 (patch) | |
tree | 7f26c81bdc77b61de6795af56e247a593a24fcd2 | |
parent | afd45b54b5a9557e8ecca1695e6a4bbf77a610a3 (diff) | |
download | aports-089036dc3716fb2a52282c9780f7798a534cac58.zip |
main/ldb: rename subpkg py-ldb to py2-ldb
-rw-r--r-- | main/ldb/APKBUILD | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/main/ldb/APKBUILD b/main/ldb/APKBUILD index b2a9026f7af..5f740e684c2 100644 --- a/main/ldb/APKBUILD +++ b/main/ldb/APKBUILD @@ -1,14 +1,14 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=ldb pkgver=1.3.2 -pkgrel=0 +pkgrel=1 pkgdesc="A schema-less, ldap like, API and database" 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 py-$pkgname:_py $pkgname-tools" +subpackages="$pkgname-dev py2-$pkgname:_py2 $pkgname-tools" source="https://www.samba.org/ftp/pub/ldb/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" @@ -34,10 +34,13 @@ package() { make DESTDIR="$pkgdir" install } -_py() { - pkgdesc="Python binding for the ldb library" +_py2() { + pkgdesc="Python 2 binding for the ldb library" + provides="py-ldb=$pkgver-r$pkgrel" # for backward compatibility + replaces="py-ldb" # for backward compatibility + mkdir -p "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/python2* "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libpyldb*.so.* "$subpkgdir"/usr/lib/ } |