void-packages/srcpkgs/python-scour/template

30 lines
855 B
Bash

# Template file for 'python-scour'
pkgname=python-scour
version=0.36
revision=2
noarch=yes
wrksrc="scour-${version}"
build_style=python-module
pycompile_module="scour"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-six"
short_desc="An SVG scrubber (Python2)"
maintainer="Alexander Mamay <alexander@mamay.su>"
license="Apache-2.0"
homepage="https://github.com/scour-project/scour"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=1b6820430c671c71406bf79afced676699d03bd3fcc65f01a651da5dcbcf3d3b
alternatives="scour:scour:/usr/bin/scour2"
python3-scour_package() {
noarch=yes
pycompile_module="scour"
depends="python3-setuptools python3-six"
short_desc="${short_desc/Python2/Python3}"
alternatives="scour:scour:/usr/bin/scour3"
pkg_install() {
vmove usr/bin/scour3
vmove usr/lib/python3*
}
}