void-packages/srcpkgs/python-polib/template

34 lines
926 B
Bash

# Template file for 'python-polib'
pkgname=python-polib
version=1.0.8
revision=2
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=5affe3d915eb5b4773f4ce164817e383eea0306115cdaf9b64008b3aea8202df
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*
}
}
python3.4-polib_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-polib>=${version}_${revision}"
}