void-packages/srcpkgs/python-curl/template
2018-04-26 20:43:18 +02:00

27 lines
754 B
Bash

# Template file for 'python-curl'
pkgname=python-curl
version=7.43.0.1
revision=3
wrksrc="pycurl-${version}"
build_style=python-module
hostmakedepends="python-devel python3-devel"
makedepends="libressl-devel libcurl-devel ${hostmakedepends}"
pycompile_module="curl"
short_desc="Python2 interface to cURL library"
homepage="http://pycurl.io/"
license="LGPL-2.1, MIT"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="${PYPI_SITE}/p/pycurl/pycurl-${version}.tar.gz"
checksum=43231bf2bafde923a6d9bb79e2407342a5f3382c1ef0a3b2e491c6a4e50b91aa
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*
}
}