33 lines
952 B
Bash
33 lines
952 B
Bash
# Template file for 'python-curl'
|
|
pkgname=python-curl
|
|
version=7.43.0
|
|
revision=6
|
|
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=aa975c19b79b6aa6c0518c0cc2ae33528900478f0b500531dbcdbf05beec584c
|
|
|
|
pre_build() {
|
|
sed -i "/setup_args\['data_files'\] = /d" setup.py
|
|
}
|
|
|
|
python3-curl_package() {
|
|
pycompile_module="curl"
|
|
replaces="python3.4-curl>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-curl_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-curl>=${version}_${revision}"
|
|
}
|