void-packages/srcpkgs/python-curl/template
2019-10-02 16:04:45 +02:00

32 lines
829 B
Bash

# Template file for 'python-curl'
pkgname=python-curl
version=7.43.0.3
revision=4
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"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later, MIT"
homepage="http://pycurl.io/"
distfiles="${PYPI_SITE}/p/pycurl/pycurl-${version}.tar.gz"
checksum=6f08330c5cf79fa8ef68b9912b9901db7ffd34b63e225dce74db56bb21deda8e
pre_build() {
sed -i "/setup_args\['data_files'\] = /d" setup.py
}
post_install() {
vlicense COPYING-MIT
}
python3-curl_package() {
pycompile_module="curl"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense COPYING-MIT
}
}