2017-01-27 08:59:12 +01:00
|
|
|
# Template file for 'python-proselint'
|
|
|
|
pkgname=python-proselint
|
|
|
|
version=0.8.0
|
2017-07-29 12:38:32 +02:00
|
|
|
revision=2
|
2017-01-27 08:59:12 +01:00
|
|
|
noarch=yes
|
|
|
|
wrksrc="proselint-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
pycompile_module="proselint"
|
|
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
2017-07-29 12:39:56 +02:00
|
|
|
depends="python-setuptools python-click python-future python-six"
|
2017-01-27 08:59:12 +01:00
|
|
|
short_desc="Linter for prose (Python2)"
|
|
|
|
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
|
|
|
|
homepage="https://github.com/amperser/proselint"
|
2017-07-29 12:39:56 +02:00
|
|
|
license="3-clause-BSD"
|
2017-01-27 08:59:12 +01:00
|
|
|
distfiles="${PYPI_SITE}/p/proselint/proselint-${version}.tar.gz"
|
|
|
|
checksum=08d48494533f178eb7a978cbdf10ddf85ed7fc2eb486ff5e7d0aecfa08e81bbd
|
|
|
|
alternatives="proselint:proselint:/usr/bin/proselint2"
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE.md
|
2017-07-29 12:38:32 +02:00
|
|
|
# remove tests directory polluting site-packages
|
|
|
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/tests
|
2017-01-27 08:59:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
python3-proselint_package() {
|
|
|
|
noarch=yes
|
2017-07-29 12:39:56 +02:00
|
|
|
depends="python3-setuptools python3-click python3-future python3-six"
|
2017-01-27 08:59:12 +01:00
|
|
|
pycompile_module="proselint"
|
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
|
|
alternatives="proselint:proselint:/usr/bin/proselint3"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/*3
|
|
|
|
vmove usr/lib/python3*
|
|
|
|
vlicense LICENSE.md
|
|
|
|
}
|
|
|
|
}
|