diff options
author | willemw12 | 2020-12-15 09:39:08 +0100 |
---|---|---|
committer | willemw12 | 2020-12-15 09:39:08 +0100 |
commit | dba87b6ed265d21950bd8136f4737b2524690643 (patch) | |
tree | 2b26be3b733a27cb01c0689355ce12dc320f35f6 | |
parent | 5cf11fcceaacf63feef15ffaa062b2164eb7cab0 (diff) | |
download | aur-dba87b6ed265d21950bd8136f4737b2524690643.tar.gz |
Change to JSON API in pkgver()
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 6 insertions, 7 deletions
@@ -1,11 +1,12 @@ pkgbase = sickchill-git pkgdesc = Automatic video library manager for TV shows pkgver = 2020.11.24.post1.r0 - pkgrel = 1 + pkgrel = 2 url = https://sickchill.github.io install = sickchill-git.install arch = any license = GPL3 + makedepends = jq makedepends = python-virtualenv optdepends = libmediainfo: determine the resolution of MKV and AVI files with no resolution in the filename optdepends = unrar: for RAR archives @@ -5,12 +5,12 @@ pkgname=sickchill-git pkgver=2020.11.24.post1.r0 -pkgrel=1 +pkgrel=2 pkgdesc="Automatic video library manager for TV shows" arch=('any') url="https://sickchill.github.io" license=('GPL3') -makedepends=('python-virtualenv') +makedepends=('jq' 'python-virtualenv') optdepends=('libmediainfo: determine the resolution of MKV and AVI files with no resolution in the filename' 'unrar: for RAR archives') provides=("${pkgname%-git}") @@ -27,10 +27,8 @@ md5sums=('309b8555af7b355f16a3ec784771f426' export PIP_DEFAULT_TIMEOUT=60 pkgver() { - #python -m venv pkgver - #pkgver/bin/pip search "${pkgname%-git}" | awk '$1 == "'${pkgname%-git}'" { gsub("[()]", ""); print $2 ".r0" }' - - curl -s "https://pypi.org/search/?q=${pkgname%-git}" | sed -n 's/.*package-snippet__version">\(.*\)<.*/\1.r0/p' + curl -s "https://pypi.org/pypi/${pkgname%-git}/json" | jq --raw-output --join-output '.info.version' + printf ".r0" } build() { |