diff options
author | Philip Goto | 2020-10-16 14:00:17 +0200 |
---|---|---|
committer | Philip Goto | 2020-10-16 14:00:17 +0200 |
commit | 602a91e15588708215054b3455952e840c06e45f (patch) | |
tree | 1c9356f951b1e84738ed3d866fd25c49118a5882 | |
parent | 4682f109e72143ec5aa27892b53f07d33d7b1aac (diff) | |
download | aur-602a91e15588708215054b3455952e840c06e45f.tar.gz |
Update
-rw-r--r-- | .SRCINFO | 35 | ||||
-rw-r--r-- | PKGBUILD | 79 |
2 files changed, 59 insertions, 55 deletions
@@ -1,30 +1,31 @@ pkgbase = python-spacy-git - pkgdesc = A free open-source library for Natural Language Processing in Python - pkgver = 2.1.0a4.r9320.0f83b98a - pkgrel = 4 + pkgdesc = Free open-source library for Natural Language Processing in Python + pkgver = 2.3.0.r136.g3851300e8 + pkgrel = 1 url = https://spacy.io/ + arch = i686 arch = x86_64 + arch = armv7h + arch = aarch64 license = MIT makedepends = git - makedepends = python-setuptools makedepends = python-wheel + makedepends = cython + depends = cython + depends = python-catalogue depends = python-cymem - depends = python-preshed - depends = python-thinc - depends = python-blis depends = python-murmurhash - depends = python-wasabi - depends = python-srsly depends = python-numpy - depends = python-requests - depends = python-jsonschema - depends = python-regex + depends = python-pathlib depends = python-plac - depends = cython - depends = python-pytest - depends = python-pytest-timeout - depends = python-mock - depends = flake8 + depends = python-preshed + depends = python-regex + depends = python-requests + depends = python-srsly + depends = python-thinc + depends = python-tqdm + depends = python-ujson + depends = python-wasabi provides = python-spacy conflicts = python-spacy source = git+https://github.com/explosion/spaCy.git @@ -1,50 +1,53 @@ -# Maintainer: DanManN <dnahimov@gmail.com> -# Python package author: Matthew Honnibal <matt@explosion.ai> +# Maintainer: Philip Goto <philip.goto@gmail.com> +# Contributor: DanManN <dnahimov@gmail.com> + pkgname=python-spacy-git -_origpkgname=spaCy -pkgver=2.1.0a4.r9320.0f83b98a -pkgrel=4 -pkgdesc="A free open-source library for Natural Language Processing in Python" -arch=("x86_64") +pkgver=2.3.0.r136.g3851300e8 +pkgrel=1 +pkgdesc="Free open-source library for Natural Language Processing in Python" +arch=(i686 x86_64 armv7h aarch64) url="https://spacy.io/" -license=("MIT") -depends=("python-cymem" - "python-preshed" - "python-thinc" - "python-blis" - "python-murmurhash" - "python-wasabi" - "python-srsly" - "python-numpy" - "python-requests" - "python-jsonschema" - "python-regex" - "python-plac" - "cython" - "python-pytest" - "python-pytest-timeout" - "python-mock" - "flake8" - ) - -makedepends=('git' 'python-setuptools' 'python-wheel') -provides=('python-spacy') -conflicts=('python-spacy') -source=("git+https://github.com/explosion/$_origpkgname.git") +license=(MIT) +depends=( + cython + python-catalogue + python-cymem + python-murmurhash + python-numpy + python-pathlib + python-plac + python-preshed + python-regex + python-requests + python-srsly + python-thinc + python-tqdm + python-ujson + python-wasabi +) +makedepends=(git python-wheel cython) +provides=(python-spacy) +conflicts=(python-spacy) +source=("git+https://github.com/explosion/spaCy.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) + cd spaCy } 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)" + cd spaCy + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd spaCy + python setup.py build } package() { - cd "$_origpkgname" - python setup.py install --root="${pkgdir}/" --optimize=1 - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd spaCy + python setup.py install --skip-build --root="${pkgdir}" --optimize=1 + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |