blob: b64e7edf0ab16d084beb6b9ec90ff3aed389a546 (
plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: DanManN <dnahimov@gmail.com>
# Python package author: Matthew Honnibal <matt@explosion.ai>
pkgname=python-spacy-git
_origpkgname=spaCy
pkgver=2.0.18.r8886.bbaca991
pkgrel=3
pkgdesc="A free open-source library for Natural Language Processing in Python"
arch=("x86_64")
url="https://spacy.io/"
license=("MIT")
depends=("cython"
"python-numpy"
"python-cymem"
"python-preshed"
"python-thinc"
"python-murmurhash"
"python-plac"
"python-ujson"
"python-dill"
"python-regex"
"python-requests"
"python-pytest"
"python-mock"
)
makedepends=('git' 'python-setuptools' 'python-wheel')
provides=('python-spacy')
conflicts=('python-spacy')
source=("git+https://github.com/explosion/$_origpkgname.git")
md5sums=('SKIP')
prepare() {
cd "$_origpkgname"
git checkout $(curl https://api.github.com/repos/explosion/$_origpkgname/releases | grep tag_name | cut -d '"' -f4 | head -n 1)
}
pkgver() {
cd "$_origpkgname"
printf "%s.r%s.%s" "$(cat spacy/about.py | grep -i version | grep -v '#' | cut -d "'" -f2 | head -n 1)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$_origpkgname"
python setup.py install --root="${pkgdir}/" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|