# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
pkgname=python-pycurl
pkgver=7.45.4
pkgrel=1
pkgdesc="A Python 3.x interface to libcurl"
arch=('x86_64' 'armv7h')
url="http://pycurl.sourceforge.net/"
license=('LGPL-2.1-only OR MIT')
depends=('curl' 'glibc' 'openssl' 'python')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("git+https://github.com/pycurl/pycurl.git#tag=REL_${pkgver//./_}")
sha512sums=('80ba18c4054f61182c99fec6c3ec08fb60d9ded8e8f7ef8bcb8b8767c5acdfce6daaddb05259ef1c06c343823563d4e5fbec73a7029a09629422893e37ba018c')
build() {
cd pycurl
# the unified source release builds (see PYCURL_RELEASE=1 in Makefile) do not work with tests
python -m build --wheel --no-isolation
}
package() {
cd pycurl
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 COPYING-MIT -t "$pkgdir"/usr/share/licenses/$pkgname/
}