void-packages/srcpkgs/python-xmldiff/template

40 lines
1.1 KiB
Bash

# Template file for 'python-xmldiff'
pkgname=python-xmldiff
version=2.3
revision=1
archs=noarch
wrksrc="xmldiff-${version}"
build_style=python-module
pycompile_module="xmldiff"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-lxml python-six python-setuptools"
short_desc="Python2 classes to diff XML files"
maintainer="prspkt <prspkt@protonmail.com>"
license="LGPL-3.0-or-later"
homepage="https://github.com/Shoobx/xmldiff"
changelog="https://raw.githubusercontent.com/Shoobx/xmldiff/master/CHANGES.rst"
distfiles="${PYPI_SITE}/x/xmldiff/xmldiff-${version}.tar.gz"
checksum=2727f62ab590c1fc834e86033988a76a86a67f5a78196584049b7a722bd94466
alternatives="xmldiff:xmldiff:/usr/bin/xmldiff2"
replaces="xmldiff>=0"
xmldiff_package() {
archs=noarch
build_style=meta
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" (transitional dummy package)"
}
python3-xmldiff_package() {
archs=noarch
pycompile_module="xmldiff"
depends="python3-lxml python3-six python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
alternatives="xmldiff:xmldiff:/usr/bin/xmldiff3"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
}
}