Commit 5cfcefaa authored by Jakub Jirutka's avatar Jakub Jirutka

main/avahi: rename py-avahi to py2-avahi

parent f4703ae6
...@@ -75,7 +75,7 @@ package() { ...@@ -75,7 +75,7 @@ package() {
tools() { tools() {
pkgdesc="UI tools for mDNS browsing" 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 mkdir -p "$subpkgdir"/usr/bin
cd "$pkgdir"/usr/bin cd "$pkgdir"/usr/bin
mv avahi-bookmarks avahi-discover b* \ mv avahi-bookmarks avahi-discover b* \
......
...@@ -16,7 +16,7 @@ install="$pkgname.pre-install" ...@@ -16,7 +16,7 @@ install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools $pkgname-glib subpackages="$pkgname-dev $pkgname-doc $pkgname-tools $pkgname-glib
$pkgname-libs $pkgname-compat-howl:howl $pkgname-libs $pkgname-compat-howl:howl
$pkgname-compat-libdns_sd:lidns_sd $pkgname-lang $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" source="https://github.com/lathiat/avahi/releases/download/v$pkgver/avahi-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver" builddir="$srcdir/$pkgname-$pkgver"
...@@ -115,12 +115,14 @@ lidns_sd() { ...@@ -115,12 +115,14 @@ lidns_sd() {
"$subpkgdir"/usr/lib/ "$subpkgdir"/usr/lib/
} }
py() { _py2() {
pkgdesc="Python 2 bindings for avahi" pkgdesc="Python 2 bindings for avahi"
depends="$pkgname=$pkgver-r$pkgrel python2" 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 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" sha512sums="bae5a1e9204aca90b90e7fd223d19e809e3514d03ba5fa2da1e55bf1d72d3d3b98567f357900c36393613dc17dc98e15ff3ebf0f226f2f6b9766e592452a6ce7 avahi-0.7.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment