diff --git a/srcpkgs/python-typing/template b/srcpkgs/python-typing/template new file mode 100644 index 00000000000..9034fc74a02 --- /dev/null +++ b/srcpkgs/python-typing/template @@ -0,0 +1,33 @@ +# Template file for 'python-typing' +pkgname=python-typing +version=3.5.2.2 +revision=1 +noarch=yes +wrksrc="typing-${version}" +build_style=python-module +python_versions="2.7 3.4" +pycompile_module="typing.py" +hostmakedepends="python-devel python3.4-devel" +depends="python" +short_desc="Backport of the typing module from Python 3.5 (Python2)" +maintainer="Alessio Sergi " +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.4-typing_package() { + noarch=yes + pycompile_version="3.4" + pycompile_module="typing.py" + depends="python3.4" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + vlicense LICENSE + } +} diff --git a/srcpkgs/python3.4-typing b/srcpkgs/python3.4-typing new file mode 120000 index 00000000000..47d59cb7357 --- /dev/null +++ b/srcpkgs/python3.4-typing @@ -0,0 +1 @@ +python-typing \ No newline at end of file