python-curl: drop package

This commit is contained in:
Đoàn Trần Công Danh 2020-09-25 08:38:53 +07:00
parent 6f747b5406
commit 265d1de3a7
4 changed files with 22 additions and 33 deletions

View File

@ -1,32 +0,0 @@
# Template file for 'python-curl'
pkgname=python-curl
version=7.43.0.3
revision=7
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
}
}

View File

@ -1 +0,0 @@
python-curl

View File

@ -0,0 +1,22 @@
# Template file for 'python3-curl'
pkgname=python3-curl
version=7.43.0.3
revision=8
wrksrc="pycurl-${version}"
build_style=python3-module
hostmakedepends="python3-devel"
makedepends="libressl-devel libcurl-devel ${hostmakedepends}"
short_desc="Python3 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() {
vsed -i "/setup_args\['data_files'\] = /d" setup.py
}
post_install() {
vlicense COPYING-MIT
}