# Template file for 'python-polib' pkgname=python-polib version=1.1.0 revision=2 archs=noarch wrksrc="polib-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools" depends="python" pycompile_module="polib.py" short_desc="Python2 library to manipulate gettext files" maintainer="Orphaned " homepage="http://bitbucket.org/izi/polib/" license="MIT" distfiles="${PYPI_SITE}/p/polib/polib-${version}.tar.gz" checksum=fad87d13696127ffb27ea0882d6182f1a9cf8a5e2b37a587751166c51e5a332a do_check() { ./runtests.sh } post_install() { vlicense LICENSE } python3-polib_package() { archs=noarch depends="python3" pycompile_module="polib.py" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/lib/python3* vlicense LICENSE } }