diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-17 17:41:38 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-17 17:54:22 +0100 |
commit | 9206e60bed78301a58bbcde6c8b4ac498f4545f6 (patch) | |
tree | 9aae83bc02c244a51c2fbad1dfc595ba9e181837 /main/tdb | |
parent | 09af939b5d191189764a0f15dc491434613bfe4c (diff) | |
download | aports-9206e60bed78301a58bbcde6c8b4ac498f4545f6.tar.bz2 aports-9206e60bed78301a58bbcde6c8b4ac498f4545f6.tar.xz |
main/tdb: rename subpkg py-tdb to py2-tdb, update depending aports
Diffstat (limited to 'main/tdb')
-rw-r--r-- | main/tdb/APKBUILD | 17 |
1 files changed, 9 insertions, 8 deletions
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 <ncopa@alpinelinux.org> 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() { |