aboutsummaryrefslogtreecommitdiffstats
path: root/main/avahi
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 /main/avahi
parentf4703ae6ebd33edefea3d108a469128c490855c2 (diff)
downloadaports-5cfcefaa40c32f563f977f046ced05d72fa2c7c4.tar.bz2
aports-5cfcefaa40c32f563f977f046ced05d72fa2c7c4.tar.xz
main/avahi: rename py-avahi to py2-avahi
Diffstat (limited to 'main/avahi')
-rw-r--r--main/avahi/APKBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/main/avahi/APKBUILD b/main/avahi/APKBUILD
index 06b4ff1ffc..085b53fbdd 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"