36 lines
1009 B
Bash
36 lines
1009 B
Bash
# Template file for 'python-scour'
|
|
pkgname=python-scour
|
|
version=0.37
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="scour-${version}"
|
|
build_style=python-module
|
|
pycompile_module="scour"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-six"
|
|
checkdepends="python3-six"
|
|
short_desc="An SVG scrubber (Python2)"
|
|
maintainer="Alexander Mamay <alexander@mamay.su>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/scour-project/scour"
|
|
changelog="https://raw.githubusercontent.com/scour-project/scour/master/HISTORY.md"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
|
checksum=4fcb961586d8a6d98ac9343ca5647421b98fdc79b51d81a1d3d18576b7908823
|
|
alternatives="scour:scour:/usr/bin/scour2"
|
|
|
|
do_check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
python3-scour_package() {
|
|
archs=noarch
|
|
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*
|
|
}
|
|
}
|