aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-05-24 00:10:53 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-05-24 00:15:42 +0200
commit5cfcefaa40c32f563f977f046ced05d72fa2c7c4 (patch)
treef49d75b9c6e2c95a14cb75b83d3f2918742ebf09
parentf4703ae6ebd33edefea3d108a469128c490855c2 (diff)
main/avahi: rename py-avahi to py2-avahi
-rw-r--r--main/avahi-ui/APKBUILD2
-rw-r--r--main/avahi/APKBUILD8
2 files changed, 6 insertions, 4 deletions
diff --git a/main/avahi-ui/APKBUILD b/main/avahi-ui/APKBUILD
index b70ae1add27..c4cbd5a8eab 100644
--- a/main/avahi-ui/APKBUILD
+++ b/main/avahi-ui/APKBUILD
@@ -75,7 +75,7 @@ package() {
tools() {
pkgdesc="UI tools for mDNS browsing"
- depends="py-gtk py-dbus py-gdbm py-avahi"
+ depends="py-gtk py-dbus py-gdbm py2-avahi"
mkdir -p "$subpkgdir"/usr/bin
cd "$pkgdir"/usr/bin
mv avahi-bookmarks avahi-discover b* \
diff --git a/main/avahi/APKBUILD b/main/avahi/APKBUILD
index 06b4ff1ffc1..085b53fbddb 100644
--- a/main/avahi/APKBUILD
+++ b/main/avahi/APKBUILD
@@ -16,7 +16,7 @@ install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools $pkgname-glib
$pkgname-libs $pkgname-compat-howl:howl
$pkgname-compat-libdns_sd:lidns_sd $pkgname-lang
- py-avahi:py:noarch"
+ py2-avahi:_py2:noarch"
source="https://github.com/lathiat/avahi/releases/download/v$pkgver/avahi-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
@@ -115,12 +115,14 @@ lidns_sd() {
"$subpkgdir"/usr/lib/
}
-py() {
+_py2() {
pkgdesc="Python 2 bindings for avahi"
depends="$pkgname=$pkgver-r$pkgrel python2"
+ provides="py-avahi=$pkgver-r$pkgrel" # for backward compatibility
+ replaces="py-avahi" # for backward compatibility
mkdir -p "$subpkgdir"/usr/lib
- mv "$pkgdir"/usr/lib/py* "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/lib/python2.* "$subpkgdir"/usr/lib/
}
sha512sums="bae5a1e9204aca90b90e7fd223d19e809e3514d03ba5fa2da1e55bf1d72d3d3b98567f357900c36393613dc17dc98e15ff3ebf0f226f2f6b9766e592452a6ce7 avahi-0.7.tar.gz"