void-packages/srcpkgs/python-greenlet/template
2016-10-18 23:29:55 +02:00

52 lines
1.5 KiB
Bash

# Template file for 'python-greenlet'
pkgname=python-greenlet
version=0.4.10
revision=3
wrksrc="greenlet-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools unzip"
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"
distfiles="${PYPI_SITE}/g/greenlet/greenlet-${version}.zip"
checksum=9a98d49f63259b16d3627976b69dd856888a376c498b091c8e9ead56d5098ca8
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() {
replaces="python3.4-greenlet-devel>=0"
depends="python3-greenlet>=${version}_${revision}"
short_desc="${short_desc/Python2/Python3} - development files"
pkg_install() {
vmove ${py3_inc}
}
}
python3-greenlet_package() {
replaces="python3.4-greenlet>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove ${py3_sitelib}
vlicense LICENSE
}
}
python3.4-greenlet-devel_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} - development files (transitional dummy package)"
depends="python3-greenlet-devel>=${version}_${revision}"
}
python3.4-greenlet_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-greenlet>=${version}_${revision}"
}