45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Template file for 'python-greenlet'
|
|
pkgname=python-greenlet
|
|
version=0.4.15
|
|
revision=2
|
|
wrksrc="greenlet-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel"
|
|
short_desc="Lightweight in-process concurrent programming (Python2)"
|
|
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/python-greenlet/greenlet"
|
|
changelog="https://raw.githubusercontent.com/python-greenlet/greenlet/master/NEWS"
|
|
distfiles="${PYPI_SITE}/g/greenlet/greenlet-${version}.tar.gz"
|
|
checksum=9416443e219356e3c31f1f918a91badf2e37acf297e2fa13d24d1cc2380f8fbc
|
|
|
|
do_check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python-greenlet-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove ${py2_inc}
|
|
}
|
|
}
|
|
python3-greenlet-devel_package() {
|
|
depends="python3-greenlet>=${version}_${revision}"
|
|
short_desc="${short_desc/Python2/Python3} - development files"
|
|
pkg_install() {
|
|
vmove ${py3_inc}
|
|
}
|
|
}
|
|
python3-greenlet_package() {
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove ${py3_sitelib}
|
|
vlicense LICENSE
|
|
}
|
|
}
|