void-packages/srcpkgs/python-polib/template
Alessio Sergi 217e7d31f2 srcpkgs: remove python3.4-* transitional dummy packages
After more than a year the switch to python3 packages, it is time to say
them goodbye. So long, and thanks for all the fish.
2017-12-20 11:29:51 +01:00

35 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
}
}