1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/community/py3-nltk/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

33 lines
961 B
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-nltk
_pkgorig=nltk
pkgver=3.8
pkgrel=0
pkgdesc="Natural Language Toolkit"
url="https://github.com/nltk/nltk"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-yaml py3-click py3-regex"
makedepends="py3-setuptools"
checkdepends="py3-nose py3-requests"
source="$pkgname-$pkgver.tar.gz::https://github.com/nltk/nltk/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"
build() {
python3 setup.py build
}
# tests require nltk-data; use smoke test for now
check() {
PYTHONPATH=build/lib python3 -c "from nltk import *"
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
rm -r "$pkgdir"/usr/lib/python3.*/site-packages/nltk/test
}
sha512sums="
1e97ac96e6086c28b522bc0017af7b6193f183d2fb236231ed240168d049b721023bde82981a9ba91de1e6ec0ae1f194eb558d7bcc32a8bef9a3bb2c75355de3 py3-nltk-3.8.tar.gz
"