diff options
Diffstat (limited to 'main/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/ } |