summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db7c9f05e29b0e81ef1ded9e554a9be2a9f98b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Tobias Frisch <jacki AT thejackimonster DOT de>

_name=language_tool_python
pkgname=python-languagetool-git
pkgver=2.9.4
pkgrel=1
pkgdesc="A free grammar checker for Python"
url="https://pypi.org/project/language-tool-python"
depends=('python' 'python-tqdm' 'python-requests' 'python-psutil' 'python-toml')
makedepends=('git' 'python' 'python-build' 'python-installer' 'python-wheel')
optdepends=()
license=('GPL3')
arch=('any')
source=("git+https://github.com/jxmorris12/$_name.git")
sha256sums=('SKIP')
provides=('python-languagetool')

pkgver() {
	cd "$srcdir/${_name}"
	cat pyproject.toml | grep '^version = ' | tr '"' ' ' | awk '{print $3}'
}

build() {
	cd "$srcdir/${_name}"
	python -m build --wheel --no-isolation
}

package() {
	cd "$srcdir/${_name}"
	python -m installer --destdir="$pkgdir" dist/${_name}-${pkgver}-py3-none-any.whl
}