diff --git a/srcpkgs/python-pycountry/template b/srcpkgs/python-pycountry/template new file mode 100644 index 00000000000..beb0066e511 --- /dev/null +++ b/srcpkgs/python-pycountry/template @@ -0,0 +1,27 @@ +# Template file for 'python-pycountry' +pkgname="python-pycountry" +version=1.10 +revision=1 +wrksrc="pycountry-${version}" +noarch=yes +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools unzip" +depends="python-lxml" +pycompile_module="pycountry" +short_desc="ISO databases accessible from Python" +maintainer="Farhad Shahbazi " +license="LGPL-2.1" +homepage="http://pypi.python.org/pypi/pycountry" +distfiles="${PYPI_SITE}/p/pycountry/pycountry-${version}.zip" +checksum=29bd07e5f0d0471c260cea14e2ca4b7d705228ebb024b4de139dc87795576e67 + +python3.4-pycountry_package() { + pycompile_version="3.4" + depends="python3.4-lxml" + pycompile_module="pycountry" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python3.4-pycountry b/srcpkgs/python3.4-pycountry new file mode 120000 index 00000000000..ef105cd19c0 --- /dev/null +++ b/srcpkgs/python3.4-pycountry @@ -0,0 +1 @@ +python-pycountry \ No newline at end of file