vp-build/srcpkgs/python-polib/template

36 lines
799 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"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}