mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-16 06:02:45 +01:00
A Python implementation of multicast DNS service discovery https://github.com/jstasiak/python-zeroconf
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py-zeroconf
|
|
_pkgname=zeroconf
|
|
pkgver=0.17.6
|
|
pkgrel=0
|
|
pkgdesc="A Python implementation of multicast DNS service discovery"
|
|
url="https://github.com/jstasiak/python-zeroconf"
|
|
arch="noarch"
|
|
license="LGPL2+"
|
|
depends="py-six py-enum34 py-netifaces"
|
|
makedepends="python2-dev py-setuptools python3-dev"
|
|
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python2 setup.py build || return 1
|
|
python3 setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
_py2() {
|
|
replaces="$pkgname"
|
|
depends="${depends//py-/py2-}"
|
|
_py python2
|
|
}
|
|
|
|
_py3() {
|
|
depends="${depends//py-/py3-}"
|
|
_py python3
|
|
}
|
|
|
|
_py() {
|
|
local python="$1"
|
|
pkgdesc="$pkgdesc (for $python)"
|
|
depends="$depends $python"
|
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
|
|
|
cd "$builddir"
|
|
$python setup.py install --prefix=/usr --root="$subpkgdir"
|
|
}
|
|
|
|
md5sums="526c9e59c3d51e9e3b688922f8fc4ecd zeroconf-0.17.6.tar.gz"
|
|
sha256sums="b614baa73833bdfc8ae64f2a9f5d19b014ad3164fbbc8513ef27a7bbe1e6c5e3 zeroconf-0.17.6.tar.gz"
|
|
sha512sums="7385086a342d16092376ffd5ce09dab8233d0c8e9485fbfda7be4a1ae3df7cd45e407e0c8665e598555ea61c996e6a5d19e5462db40b2ecec31920e88b84191e zeroconf-0.17.6.tar.gz"
|