void-packages/srcpkgs/python-xmldiff/template

38 lines
1.1 KiB
Bash

# Template file for 'xmldiff'
pkgname=python-xmldiff
version=1.1.1
revision=1
noarch=yes
wrksrc="xmldiff-${version}"
build_style=python-module
pycompile_module="xmldiff"
hostmakedepends="python-devel python3-devel python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="python-future python-lxml python-six"
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=b8dc6c36a3499e752cf5b5d2704d961be37fcf2ea5be2e4187572e18f674d053
replaces="xmldiff>=0"
xmldiff_package() {
noarch=yes
build_style=meta
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" (transitional dummy package)"
}
python3-xmldiff_package() {
noarch=yes
pycompile_module="xmldiff"
depends="python3-future python3-lxml python3-six"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
}
}