~dricottone/huttese-apk

ref: bce3c53b2457cb8ef087f362c6438da0c4bef526 huttese-apk/sr.ht/py3-pyphen/APKBUILD -rw-r--r-- 855 bytes
bce3c53b — Drew DeVault py3-deprecated: add pytest to checkdeps 5 years ago
                                                                                
cb4c58b7 Drew DeVault
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
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-pyphen
_pyname=Pyphen
pkgver=0.9.5
pkgrel=2
pkgdesc="python-based dictionary hyphenator library"
url="http://www.pyphen.org/"
arch="noarch"
license="GPL-2.0-or-later MPL LGPL-2.0-or-later"
makedepends="python3-dev py3-setuptools"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
replaces="py-pyphen py2-pyphen"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="15b9a29517df2b873b5b8d4739d8fa48a09ab199ab9246c7a4fd25c46253a74a18a88fd9484978476b3b1c8d88fed7729382b9dbe4f425724fe54bcd6227de96  Pyphen-0.9.5.tar.gz"