void-packages/srcpkgs/python-polib/template
maxice8 c7d266842c python-polib: update to 1.1.0.
Closes #9599.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2017-11-28 12:33:44 +01:00

42 lines
1,014 B
Bash

# Template file for 'python-polib'
pkgname=python-polib
version=1.1.0
revision=1
noarch=yes
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="Juan RP <xtraeme@voidlinux.eu>"
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() {
noarch=yes
depends="python3"
pycompile_module="polib.py"
replaces="python3.4-polib>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-polib_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-polib>=${version}_${revision}"
}