diff options
author | DanManN | 2018-12-21 12:16:56 -0500 |
---|---|---|
committer | DanManN | 2018-12-21 12:16:56 -0500 |
commit | dff43e0fba3a3346399f39d13549c1ffaf57b18f (patch) | |
tree | ec1ce4c200a84daaea22699ddb8112e3f18f0d9a | |
parent | bc36783eacce496f81dc7ece0997ca9617531318 (diff) | |
download | aur-dff43e0fba3a3346399f39d13549c1ffaf57b18f.tar.gz |
make depends + version from releases
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 12 insertions, 5 deletions
@@ -1,10 +1,12 @@ pkgbase = python-spacy-git pkgdesc = A free open-source library for Natural Language Processing in Python - pkgver = 2.0.18.r8888.ae5601be - pkgrel = 2 + pkgver = 2.0.18.r8886.bbaca991 + pkgrel = 3 url = https://spacy.io/ arch = x86_64 license = MIT + makedepends = git + makedepends = python-setuptools makedepends = python-wheel depends = cython depends = python-numpy @@ -2,8 +2,8 @@ # Python package author: Matthew Honnibal <matt@explosion.ai> pkgname=python-spacy-git _origpkgname=spaCy -pkgver=2.0.18.r8888.ae5601be -pkgrel=2 +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/" @@ -22,12 +22,17 @@ depends=("cython" "python-pytest" "python-mock" ) -makedepends=("python-wheel") +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)" |