2014-06-24 11:13:13 +00:00
|
|
|
# Template file for 'python-curl'
|
|
|
|
pkgname=python-curl
|
2015-01-08 07:01:04 +00:00
|
|
|
version=7.19.5.1
|
2015-08-06 13:44:26 +00:00
|
|
|
revision=5
|
2014-06-24 11:13:13 +00:00
|
|
|
wrksrc="pycurl-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
2014-06-27 08:33:14 +00:00
|
|
|
hostmakedepends="python-devel python3.4-devel"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="libressl-devel libcurl-devel ${hostmakedepends}"
|
2014-06-24 11:13:13 +00:00
|
|
|
pycompile_module="curl"
|
|
|
|
short_desc="Python2 interface to cURL library"
|
|
|
|
homepage="http://pycurl.sourceforge.net/"
|
|
|
|
license="LGPL-2.1, MIT"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-06-24 11:13:13 +00:00
|
|
|
distfiles="http://pycurl.sourceforge.net/download/pycurl-${version}.tar.gz"
|
2015-01-08 07:01:04 +00:00
|
|
|
checksum=6e9770f80459757f73bd71af82fbb29cd398b38388cdf1beab31ea91a331bc6c
|
2014-06-24 11:13:13 +00:00
|
|
|
|
2014-06-27 08:33:14 +00:00
|
|
|
CFLAGS="-fno-strict-aliasing"
|
2014-06-24 11:13:13 +00:00
|
|
|
|
2015-07-10 22:55:06 +00:00
|
|
|
pre_build() {
|
|
|
|
sed -i "/setup_args\['data_files'\] = /d" setup.py
|
2014-06-27 08:01:47 +00:00
|
|
|
}
|
|
|
|
|
2014-06-24 11:13:13 +00:00
|
|
|
python3.4-curl_package() {
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="curl"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
2014-08-20 18:30:17 +00:00
|
|
|
vmove usr/lib/python3.4
|
2014-06-24 11:13:13 +00:00
|
|
|
}
|
|
|
|
}
|