a836c92daf
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
38 lines
1,016 B
Bash
38 lines
1,016 B
Bash
# Template file for 'python-typing'
|
|
pkgname=python-typing
|
|
version=3.5.2.2
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="typing-${version}"
|
|
build_style=python-module
|
|
pycompile_module="typing.py"
|
|
hostmakedepends="python-devel python3-devel"
|
|
depends="python"
|
|
short_desc="Backport of the typing module from Python 3.5 (Python2)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://docs.python.org/3.5/library/typing.html"
|
|
license="PSF"
|
|
distfiles="${PYPI_SITE}/t/typing/typing-${version}.tar.gz"
|
|
checksum=2bce34292653af712963c877f3085250a336738e64f99048d1b8509bebc4772f
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-typing_package() {
|
|
noarch=yes
|
|
pycompile_module="typing.py"
|
|
replaces="python3.4-typing>=0"
|
|
depends="python3"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-typing_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-typing>=${version}_${revision}"
|
|
}
|