38 lines
931 B
Text
38 lines
931 B
Text
|
# Maintainer: Antoine Martin <dev@ayakael.net>
|
||
|
|
||
|
_pyname='langdetect'
|
||
|
pkgname="py3-$_pyname"
|
||
|
pkgver=1.0.9
|
||
|
pkgrel=0
|
||
|
arch='noarch'
|
||
|
pkgdesc="Language detection library ported from Google's language-detection"
|
||
|
url="https://pypi.python.org/project/${_pyname}"
|
||
|
license="Apache"
|
||
|
depends='py3-six'
|
||
|
makedepends='py3-setuptools py3-pytest'
|
||
|
source="${pkgname}-${pkgver}.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-${pkgver}.tar.gz"
|
||
|
builddir="$srcdir"/$_pyname-$pkgver
|
||
|
|
||
|
build() {
|
||
|
cd "$builddir"
|
||
|
|
||
|
python3 setup.py build
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
cd "$builddir"
|
||
|
|
||
|
pytest -v
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$builddir"
|
||
|
|
||
|
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
|
||
|
|
||
|
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
||
|
}
|
||
|
sha512sums="
|
||
|
7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db py3-langdetect-1.0.9.tar.gz
|
||
|
"
|