37 lines
968 B
Text
37 lines
968 B
Text
# Maintainer: Antoine Martin <dev@ayakael.net>
|
|
|
|
_pyname='Whoosh'
|
|
pkgname="py3-whoosh"
|
|
pkgver=2.7.4
|
|
pkgrel=0
|
|
arch='noarch'
|
|
pkgdesc='Fast, pure-Python full text indexing, search, and spell checking library'
|
|
url="https://pypi.python.org/project/${_pyname}"
|
|
license="BSD"
|
|
depends='python3'
|
|
makedepends='py3-setuptools py3-pytest-runner'
|
|
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"
|
|
|
|
python setup.py ptr || echo "Tests failed"
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
|
|
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
|
|
|
|
install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
sha512sums="
|
|
7cdefdcf52b704ffe50c00718c42677e2ddfe879f81ad2d14b580b0e026cc0ebb6b9ddc99d8709eaff4eb9b83f654b042c8792821e1ed90aa85cfa6f82845074 py3-whoosh-2.7.4.tar.gz
|
|
"
|