void-packages/srcpkgs/python-curl/template

27 lines
755 B
Bash

# Template file for 'python-curl'
pkgname=python-curl
version=7.43.0.2
revision=3
wrksrc="pycurl-${version}"
build_style=python-module
pycompile_module="curl"
hostmakedepends="python-devel python3-devel"
makedepends="libressl-devel libcurl-devel ${hostmakedepends}"
short_desc="Python2 interface to cURL library"
homepage="http://pycurl.io/"
license="LGPL-2.1, MIT"
maintainer="Juan RP <xtraeme@voidlinux.org>"
distfiles="${PYPI_SITE}/p/pycurl/pycurl-${version}.tar.gz"
checksum=0f0cdfc7a92d4f2a5c44226162434e34f7d6967d3af416a6f1448649c09a25a4
pre_build() {
sed -i "/setup_args\['data_files'\] = /d" setup.py
}
python3-curl_package() {
pycompile_module="curl"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}