30 lines
980 B
Text
30 lines
980 B
Text
# Contributor: Sam Whited <sam@samwhited.com>
|
|
# Maintainer: Sam Whited <sam@samwhited.com>
|
|
pkgname=py3-pycares
|
|
_pkgname=pycares
|
|
pkgver=4.2.2
|
|
pkgrel=1
|
|
pkgdesc="A library for performing DNS resolutions using c-ares."
|
|
url="https://pypi.org/project/aiosasl/"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="python3 py3-idna py3-cffi"
|
|
makedepends="py3-setuptools c-ares-dev python3-dev"
|
|
subpackages="$pkgname-doc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
options="!check" # tests not included in source package.
|
|
|
|
build() {
|
|
export PYCARES_USE_SYSTEM_LIB=1
|
|
python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
install -Dm644 LICENSE README.rst -t "$pkgdir"/usr/share/licenses/$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
5d1c60b74880dafef316fa1ca1e962c48a5efc9f018a1bd264d686254e39074a6c7f62bbf267ed7cee38aa6f9588dd0fd5ec329acdef00c872bcd21fcc6cc6b3 pycares-4.2.2.tar.gz
|
|
"
|