void-packages/srcpkgs/python-pycountry/template
2015-08-20 09:53:54 +02:00

27 lines
818 B
Bash

# Template file for 'python-pycountry'
pkgname="python-pycountry"
version=1.14
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 <grauwolf@geekosphere.org>"
license="LGPL-2.1"
homepage="http://pypi.python.org/pypi/pycountry"
distfiles="${PYPI_SITE}/p/pycountry/pycountry-${version}.tar.gz"
checksum=e5012671e4c1e0280574fff5bce50d892e8b56dea43e867661088c1bf91c2f0c
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
}
}