aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-cmudict/APKBUILD
blob: d9a8e8bee302fee6ef886d75326adcd8fa54c789 (plain) (blame)
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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-cmudict
pkgver=0.4.5
pkgrel=1
pkgdesc="A versioned Python wrapper package for The CMU Pronouncing Dictionary data files"
url="https://github.com/prosegrinder/python-cmudict"
arch="noarch"
license="GPL-3.0-only"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/c/cmudict/cmudict-$pkgver.tar.gz"
builddir="$srcdir/cmudict-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

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

sha512sums="a7866de394b5f0a2ff5dfaa383c76beca1bfb7d97ccb4559e097185cdd83895b5f662d7a97030062836fbd77dff865fa2a6a6ed90005f6d0d2a3ce1a1fb98e6c  cmudict-0.4.5.tar.gz"