diff --git a/srcpkgs/python-scour/template b/srcpkgs/python-scour/template new file mode 100644 index 00000000000..7a5ba802ec6 --- /dev/null +++ b/srcpkgs/python-scour/template @@ -0,0 +1,29 @@ +# Template file for 'python-scour' +pkgname=python-scour +version=0.35 +revision=1 +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 " +license="Apache-2.0" +homepage="https://github.com/scour-project/scour" +distfiles="$homepage/archive/v${version}.tar.gz" +checksum=91a7dd0d721a3567b802c1b353ef451621594e628fe723cedb65cd4629fbc96f +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* + } +} diff --git a/srcpkgs/python3-scour b/srcpkgs/python3-scour new file mode 120000 index 00000000000..1da55660015 --- /dev/null +++ b/srcpkgs/python3-scour @@ -0,0 +1 @@ +python-scour \ No newline at end of file