python-proselint: remove tests directory polluting site-packages

This commit is contained in:
Alessio Sergi 2017-07-29 12:38:32 +02:00
parent e5a42435ca
commit b9227b8d5e
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'python-proselint' # Template file for 'python-proselint'
pkgname=python-proselint pkgname=python-proselint
version=0.8.0 version=0.8.0
revision=1 revision=2
noarch=yes noarch=yes
wrksrc="proselint-${version}" wrksrc="proselint-${version}"
build_style=python-module build_style=python-module
@ -18,6 +18,8 @@ alternatives="proselint:proselint:/usr/bin/proselint2"
post_install() { post_install() {
vlicense LICENSE.md vlicense LICENSE.md
# remove tests directory polluting site-packages
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/tests
} }
python3-proselint_package() { python3-proselint_package() {