34 lines
983 B
Bash
34 lines
983 B
Bash
# Template file for 'python-pycountry'
|
|
pkgname=python-pycountry
|
|
version=17.5.14
|
|
revision=2
|
|
wrksrc="pycountry-${version}"
|
|
noarch=yes
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
pycompile_module="pycountry"
|
|
short_desc="ISO databases accessible from Python2"
|
|
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=d31321e59a134aac326ac07d4b2595d63f7e7f755bcb503bdecca2bd1b54ff2f
|
|
|
|
python3-pycountry_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="pycountry"
|
|
replaces="python3.4-pycountry>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-pycountry_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-pycountry>=${version}_${revision}"
|
|
}
|