aboutsummaryrefslogtreecommitdiff
path: root/community/py3-enchant/APKBUILD
blob: cddeef852dd25aded258a2d4c4fe2351232c44c5 (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
32
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-enchant
_pkgname=pyenchant
pkgver=3.1.0
pkgrel=0
pkgdesc="Spellchecking library for Python"
url="https://github.com/pyenchant/pyenchant"
arch="noarch"
license="LGPL-2.0-or-later"
depends="enchant2 python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest aspell-en"
source="$pkgname-$pkgver.tar.gz::https://github.com/pyenchant/pyenchant/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-enchant" # Backwards compatibility
provides="py-enchant=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

check() {
	python3 -m pytest
}

sha512sums="d2bf872c15fca1e2c1aa8de06a9ee2c0e6128a69f728383ae9b91fb0ead2d66f804388671cc8156716e240548c29da41eb6c0678dd889012009c690bd078a7de  py3-enchant-3.1.0.tar.gz"