From 9206e60bed78301a58bbcde6c8b4ac498f4545f6 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sat, 17 Mar 2018 17:41:38 +0100 Subject: main/tdb: rename subpkg py-tdb to py2-tdb, update depending aports --- main/tdb/APKBUILD | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'main/tdb') diff --git a/main/tdb/APKBUILD b/main/tdb/APKBUILD index 5e82af3460..96c4332684 100644 --- a/main/tdb/APKBUILD +++ b/main/tdb/APKBUILD @@ -1,17 +1,15 @@ # Maintainer: Natanael Copa pkgname=tdb pkgver=1.3.15 -pkgrel=0 +pkgrel=1 pkgdesc="The tdb library" 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 py-$pkgname:_py $pkgname-libs $pkgname-doc" -source="http://samba.org/ftp/tdb/tdb-$pkgver.tar.gz - " - +subpackages="$pkgname-dev py2-$pkgname:_py2 $pkgname-libs $pkgname-doc" +source="http://samba.org/ftp/tdb/tdb-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { @@ -40,10 +38,13 @@ package() { make DESTDIR="$pkgdir" install } -_py() { - pkgdesc="Python binding for the tdb library" +_py2() { + pkgdesc="Python 2 binding for the tdb library" + provides="py-tdb=$pkgver-r$pkgrel" # for backward compatibility + replaces="py-tdb" # for backward compatibility + mkdir -p "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/python2* "$subpkgdir"/usr/lib/ } libs() { -- cgit v1.2.3