diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 13 insertions, 12 deletions
@@ -1,7 +1,7 @@ pkgbase = sickchill-git pkgdesc = Automatic video library manager for TV shows - pkgver = 2020.11.24.post1.r0 - pkgrel = 2 + pkgver = 2021.5.10.1.r0 + pkgrel = 1 url = https://sickchill.github.io install = sickchill-git.install arch = any @@ -9,7 +9,7 @@ pkgbase = sickchill-git 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 + optdepends = unrar: for RAR files provides = sickchill conflicts = sickchill options = !strip @@ -1,18 +1,19 @@ # Maintainer: willemw <willemw12@gmail.com> -# NOTE This "PIP install" package is like a VCS package: it has a pkgver() function and to update do a reinstall. +# NOTE This "PIP install" package is similar to a VCS package: +# it has a pkgver() function and to update do a reinstall. # That is the only reason why this package ends on -git. pkgname=sickchill-git -pkgver=2020.11.24.post1.r0 -pkgrel=2 +pkgver=2021.5.10.1.r0 +pkgrel=1 pkgdesc="Automatic video library manager for TV shows" arch=('any') url="https://sickchill.github.io" license=('GPL3') makedepends=('jq' 'python-virtualenv') optdepends=('libmediainfo: determine the resolution of MKV and AVI files with no resolution in the filename' - 'unrar: for RAR archives') + 'unrar: for RAR files') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") options=('!strip') @@ -24,19 +25,19 @@ md5sums=('309b8555af7b355f16a3ec784771f426' '97fb191af2e326d5aba2cf58270b4feb' '515f13e391105a716ef6763ba8533fc7') -export PIP_DEFAULT_TIMEOUT=60 - pkgver() { - curl -s "https://pypi.org/pypi/${pkgname%-git}/json" | jq --raw-output --join-output '.info.version' - printf ".r0" + local version="$(curl -s "https://pypi.org/pypi/${pkgname%-git}/json" | jq --raw-output --join-output '.info.version')" + printf "%s.r0" "$version" | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { + set -x #python -m venv build virtualenv --quiet build - build/bin/pip install --quiet --quiet --isolated --no-warn-script-location --root=build --prefix=. sickchill + build/bin/pip install --isolated --no-warn-script-location --root=build --prefix=. --default-timeout=60 sickchill sed -i '1s|.*|#!/opt/sickchill/app/bin/python|' build/bin/SickChill.py + set +x } package() { |