42 lines
1.5 KiB
Bash
42 lines
1.5 KiB
Bash
# Maintainer: Antoine Martin <antoine@xpra.org>
|
|
# Contributor: Jelle van der Waa <jelle@archlinux.org>
|
|
# Contributor: Maxim Andersson <thesilentboatman@gmail.com>
|
|
|
|
pkgname="${MINGW_PACKAGE_PREFIX}-python3-zeroconf"
|
|
_srcname=python-zeroconf
|
|
pkgver=0.22.0
|
|
pkgrel=1
|
|
pkgdesc="A pure python implementation of multicast DNS service discovery"
|
|
arch=('any')
|
|
url="https://github.com/jstasiak/python-zeroconf"
|
|
license=('LGPL')
|
|
depends=("${MINGW_PACKAGE_PREFIX}-python3"
|
|
"${MINGW_PACKAGE_PREFIX}-python3-netifaces"
|
|
"${MINGW_PACKAGE_PREFIX}-python3-six"
|
|
"${MINGW_PACKAGE_PREFIX}-python3-ifaddr")
|
|
makedepends=("${MINGW_PACKAGE_PREFIX}-python3-setuptools")
|
|
checkdepends=("${MINGW_PACKAGE_PREFIX}-python3-pytest")
|
|
source=("${_srcname}-${pkgver}.tar.gz"::"https://github.com/jstasiak/${_srcname}/archive/${pkgver}.tar.gz")
|
|
sha256sums=('6d451ab2bbb11aa37a54c5b7f83815bb726dd1de54b1f8e19878ad653072bc0d')
|
|
|
|
build() {
|
|
cd "${srcdir}/${_srcname}-${pkgver}"
|
|
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
|
${MINGW_PREFIX}/bin/python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_srcname}-${pkgver}"
|
|
|
|
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
|
${MINGW_PREFIX}/bin/python3 setup.py install --prefix=${MINGW_PREFIX} \
|
|
--root="${pkgdir}" --optimize=1 --skip-build
|
|
install -Dm644 COPYING "${pkgdir}${MINGW_PREFIX}/share/licenses/python3-zeroconf/COPYING"
|
|
install -Dm644 README.rst "${pkgdir}${MINGW_PREFIX}/share/doc/python3-zeroconf/README"
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${_srcname}-${pkgver}"
|
|
py.test .
|
|
}
|