diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 57 | ||||
-rw-r--r-- | sickchill-git.install | 12 | ||||
-rw-r--r-- | sickchill.service | 1 | ||||
-rw-r--r-- | sickchill.sysusers | 1 |
5 files changed, 50 insertions, 27 deletions
@@ -1,6 +1,6 @@ pkgbase = sickchill-git pkgdesc = Automatic video library manager for TV shows - pkgver = 2021.11.10.r0 + pkgver = 2024.3.1.r0 pkgrel = 1 url = https://sickchill.github.io install = sickchill-git.install @@ -16,8 +16,8 @@ pkgbase = sickchill-git source = sickchill.service source = sickchill.sysusers source = sickchill.tmpfiles - sha256sums = a7bb9f2406721f9d5eb66dab954bfc54f6bfe74fa6efd646e1006903e3e42bc8 - sha256sums = 1467f3613f5f25e678e373465dc09a28230f7cdf07af23875a0896a509c3b850 + sha256sums = b417284472d804e634c0dcaac2876ca164ad9a485f947e0f05798d0ce1136d59 + sha256sums = aaeb298c9717da8b28853ed15509fb8428d975ae49e8737ebcec15caab9f0978 sha256sums = 2069f15e18fc7dd0f0f25b623f2067fc9028b1ca4122021a62364aa39914f88f pkgname = sickchill-git @@ -1,31 +1,45 @@ # Maintainer: willemw <willemw12@gmail.com> -# To install a specific release manually: comment out pkgver(), set the release in "pkgver=" and -# at the end of the "pip install" line (change "sickchill" to "sickchill==<release>"). +# This package installs the latest SickChill release + +# To install another SickChill release: +# - Comment out pkgver() +# - Set the release in variable pkgver: pkgver=<release> +# - Set the same release number at the end of the "pip install" line, +# by changing "sickchill" to "sickchill==$pkgver" +# +# To install the latest commit: +# - Comment out pkgver() +# - Set some descriptive label in variable pkgver: pkgver=latest +# - Change "sickchill" to "git+https://github.com/SickChill/sickchill.git" +# to install the latest from the default branch +# - Or change "sickchill" to "git+https://github.com/SickChill/sickchill.git@develop" +# to install the latest from the 'develop' branch +# ) # This "PIP install" package is similar to a VCS package: -# it has a pkgver() function and a reinstall will update the package. -# That is the only reason why this package ends on -git. +# it has a pkgver() function and a reinstall updates the package. +# That is the only reason why this package ends on "-git". pkgname=sickchill-git -pkgver=2021.11.10.r0 +pkgver=2024.3.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') +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 files') -provides=(${pkgname%-git}) -conflicts=(${pkgname%-git}) +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") options=('!strip') install=$pkgname.install -source=('sickchill.service' - 'sickchill.sysusers' - 'sickchill.tmpfiles') -sha256sums=('a7bb9f2406721f9d5eb66dab954bfc54f6bfe74fa6efd646e1006903e3e42bc8' - '1467f3613f5f25e678e373465dc09a28230f7cdf07af23875a0896a509c3b850' +source=(sickchill.service + sickchill.sysusers + sickchill.tmpfiles) +sha256sums=('b417284472d804e634c0dcaac2876ca164ad9a485f947e0f05798d0ce1136d59' + 'aaeb298c9717da8b28853ed15509fb8428d975ae49e8737ebcec15caab9f0978' '2069f15e18fc7dd0f0f25b623f2067fc9028b1ca4122021a62364aa39914f88f') pkgver() { @@ -41,17 +55,16 @@ build() { PIP_CONFIG_FILE=/dev/null build/bin/pip install \ --ignore-installed --isolated --cache-dir=cache --prefix=. --root=build \ --default-timeout=60 --disable-pip-version-check --no-warn-script-location --progress-bar=off \ - sickchill + setuptools sickchill sed -i '1s|.*|#!/opt/sickchill/app/bin/python|' build/bin/SickChill } package() { install -Dm644 sickchill.service -t "$pkgdir/usr/lib/systemd/system" - install -Dm644 sickchill.sysusers "$pkgdir/usr/lib/sysusers.d/sickchill.conf" - install -Dm644 sickchill.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/sickchill.conf" + install -Dm644 sickchill.sysusers "$pkgdir/usr/lib/sysusers.d/sickchill.conf" + install -Dm644 sickchill.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/sickchill.conf" install -dm755 "$pkgdir/opt/sickchill" - cp -a build "$pkgdir/opt/sickchill/app" + cp -a build "$pkgdir/opt/sickchill/app" } - diff --git a/sickchill-git.install b/sickchill-git.install index b52160d2ee2b..74a04ec3b969 100644 --- a/sickchill-git.install +++ b/sickchill-git.install @@ -1,8 +1,17 @@ +# Remove all program files, including files created or modified by SickChill +_cleanup_app_files() { + rm -rf /opt/sickchill/app +} + post_install() { post_upgrade echo "==> Start and enable sickchill.service. Then visit http://localhost:8081/" } +pre_upgrade() { + _cleanup_app_files +} + post_upgrade() { systemd-sysusers sickchill.conf chown -R sickchill:sickchill /opt/sickchill/app @@ -14,8 +23,7 @@ pre_remove() { } post_remove() { - # Remove additional files created by the built-in updater - rm -rf /opt/sickchill/app + _cleanup_app_files echo "==> To delete the configuration files, run as root: rm -rf /opt/sickchill/data" diff --git a/sickchill.service b/sickchill.service index 8962fbc44511..fb4dec3dca42 100644 --- a/sickchill.service +++ b/sickchill.service @@ -8,6 +8,7 @@ User=sickchill Group=sickchill Type=simple +#ExecStart=/var/lib/sickchill/app/bin/SickChill --quiet --nolaunch --datadir=/var/lib/sickchill/data ExecStart=/opt/sickchill/app/bin/SickChill --quiet --nolaunch --datadir=/opt/sickchill/data [Install] diff --git a/sickchill.sysusers b/sickchill.sysusers index e535bb2be54f..cb39976db281 100644 --- a/sickchill.sysusers +++ b/sickchill.sysusers @@ -1 +1,2 @@ +#u sickchill - "SickChill Daemon" /var/lib/sickchill u sickchill - "SickChill Daemon" /opt/sickchill |