diff options
author | txtsd | 2024-10-14 00:22:03 +0530 |
---|---|---|
committer | txtsd | 2024-10-14 01:36:20 +0530 |
commit | 9dd4e3e148c7b4d88bbbe5bdc80202eac7e07b96 (patch) | |
tree | ea5bdc352f04f018a9334ca8868c76a03a9b37c7 | |
parent | 808eda2cae9f02b7fd9422e949255c3ce5231b3c (diff) | |
download | aur-9dd4e3e148c7b4d88bbbe5bdc80202eac7e07b96.tar.gz |
chore: Housekeeping
Signed-off-by: txtsd <code@ihavea.quest>
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | .gitignore | 9 | ||||
-rw-r--r-- | PKGBUILD | 55 | ||||
-rw-r--r-- | sonarr.service | 6 | ||||
-rw-r--r-- | sonarr.sysusers | 2 |
5 files changed, 59 insertions, 42 deletions
@@ -1,12 +1,16 @@ -pkgbase = sonarr - pkgdesc = TV download automation for usenet and torrents. +pkgbase = sonarr-bin + pkgdesc = Smart PVR for newsgroup and bittorrent users. pkgver = 4.0.9.2244 pkgrel = 1 url = https://sonarr.tv/ arch = x86_64 arch = aarch64 arch = armv7h - license = GPL3 + groups = servarr + license = GPL-3.0-or-later + depends = gcc-libs + depends = glibc + depends = zlib depends = sqlite optdepends = sabnzbd: usenet downloader optdepends = nzbget: usenet downloader @@ -19,19 +23,22 @@ pkgbase = sonarr optdepends = jackett: torrent indexer proxy optdepends = nzbhydra2: torznab and usenet indexer proxy optdepends = prowlarr: torrent and usenet indexer proxy + provides = sonarr + conflicts = sonarr + options = !debug + source = package_info source = sonarr.service source = sonarr.sysusers source = sonarr.tmpfiles - source = package_info - sha256sums = ea1190896fb444e74ce16546ddec851575d083906964c63d4794d47186bdd587 - sha256sums = cc3c69f719fa64335f4c5b41b2588f1ec56865fb2202f5919d3668b50b8f398e - sha256sums = 7bf87304383b7d58ecab59b3686d00a8f1b6fbe4af3a86da35a887e4cebee411 sha256sums = 19112dc0051224b4de66f28077c93b6ee06e163b5194e6aecf62dedf66ff45a9 - source_x86_64 = http://github.com/Sonarr/Sonarr/releases/download/v4.0.9.2244/Sonarr.main.4.0.9.2244.linux-x64.tar.gz + sha256sums = b26aa01e07e5864b588ebe51a2993eaafb03fa0f7ec3806f2996dd2daf46aee7 + sha256sums = 047585a1d448ad2c6e2962fb60d4f71e01a2529e464b25d340bb0d31b8e0f08f + sha256sums = 7bf87304383b7d58ecab59b3686d00a8f1b6fbe4af3a86da35a887e4cebee411 + source_x86_64 = https://github.com/Sonarr/Sonarr/releases/download/v4.0.9.2244/Sonarr.main.4.0.9.2244.linux-x64.tar.gz sha256sums_x86_64 = 0bad4b09e61c90ee3a13f5a6fbae03c964b82c19789a690516663b14b75f15b0 - source_aarch64 = http://github.com/Sonarr/Sonarr/releases/download/v4.0.9.2244/Sonarr.main.4.0.9.2244.linux-arm64.tar.gz + source_aarch64 = https://github.com/Sonarr/Sonarr/releases/download/v4.0.9.2244/Sonarr.main.4.0.9.2244.linux-arm64.tar.gz sha256sums_aarch64 = 04a6b5b24fde70441727ee131ce1db91bbab80be7f70167bfea6444d12f1a265 - source_armv7h = http://github.com/Sonarr/Sonarr/releases/download/v4.0.9.2244/Sonarr.main.4.0.9.2244.linux-arm.tar.gz + source_armv7h = https://github.com/Sonarr/Sonarr/releases/download/v4.0.9.2244/Sonarr.main.4.0.9.2244.linux-arm.tar.gz sha256sums_armv7h = 71b6d9d99e2937ebf5d35f6b05731c7bca7ee270014d09d0547a416cf67085b8 -pkgname = sonarr +pkgname = sonarr-bin diff --git a/.gitignore b/.gitignore index 6e570bc49abe..9f41572a64a4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ -*.xz -*.gz -*.log -/src/ -/pkg/ +src/ +pkg/ + +*.tar.* @@ -1,20 +1,23 @@ # Maintainer: Donald Webster <fryfrog@gmail.com> +# Contributor: txtsd <aur.archlinux@ihavea.quest> # Contributor: Justin Dray <justin@dray.be> # Contributor: Daniel Egeberg <daniel.egeberg@gmail.com> -# Helpful URL: http://services.sonarr.tv/v1/releases +# Helpful URL: https://services.sonarr.tv/v1/releases -pkgname='sonarr' +pkgname=sonarr-bin pkgver=4.0.9.2244 pkgrel=1 -pkgdesc='TV download automation for usenet and torrents.' +pkgdesc='Smart PVR for newsgroup and bittorrent users.' arch=('x86_64' 'aarch64' 'armv7h') url='https://sonarr.tv/' -license=('GPL3') - +license=('GPL-3.0-or-later') +groups=('servarr') depends=( + 'gcc-libs' + 'glibc' + 'zlib' 'sqlite' ) - optdepends=( 'sabnzbd: usenet downloader' 'nzbget: usenet downloader' @@ -28,37 +31,41 @@ optdepends=( 'nzbhydra2: torznab and usenet indexer proxy' 'prowlarr: torrent and usenet indexer proxy' ) - -source_x86_64=("http://github.com/Sonarr/Sonarr/releases/download/v${pkgver}/Sonarr.main.${pkgver}.linux-x64.tar.gz") -source_aarch64=("http://github.com/Sonarr/Sonarr/releases/download/v${pkgver}/Sonarr.main.${pkgver}.linux-arm64.tar.gz") -source_armv7h=("http://github.com/Sonarr/Sonarr/releases/download/v${pkgver}/Sonarr.main.${pkgver}.linux-arm.tar.gz") - +provides=(sonarr) +conflicts=(sonarr) +options=(!debug) source=( + 'package_info' 'sonarr.service' 'sonarr.sysusers' 'sonarr.tmpfiles' - 'package_info' ) - -noextract=() -sha256sums=('ea1190896fb444e74ce16546ddec851575d083906964c63d4794d47186bdd587' - 'cc3c69f719fa64335f4c5b41b2588f1ec56865fb2202f5919d3668b50b8f398e' - '7bf87304383b7d58ecab59b3686d00a8f1b6fbe4af3a86da35a887e4cebee411' - '19112dc0051224b4de66f28077c93b6ee06e163b5194e6aecf62dedf66ff45a9') +source_x86_64=("https://github.com/Sonarr/Sonarr/releases/download/v${pkgver}/Sonarr.main.${pkgver}.linux-x64.tar.gz") +source_aarch64=("https://github.com/Sonarr/Sonarr/releases/download/v${pkgver}/Sonarr.main.${pkgver}.linux-arm64.tar.gz") +source_armv7h=("https://github.com/Sonarr/Sonarr/releases/download/v${pkgver}/Sonarr.main.${pkgver}.linux-arm.tar.gz") +sha256sums=('19112dc0051224b4de66f28077c93b6ee06e163b5194e6aecf62dedf66ff45a9' + 'b26aa01e07e5864b588ebe51a2993eaafb03fa0f7ec3806f2996dd2daf46aee7' + '047585a1d448ad2c6e2962fb60d4f71e01a2529e464b25d340bb0d31b8e0f08f' + '7bf87304383b7d58ecab59b3686d00a8f1b6fbe4af3a86da35a887e4cebee411') sha256sums_x86_64=('0bad4b09e61c90ee3a13f5a6fbae03c964b82c19789a690516663b14b75f15b0') sha256sums_aarch64=('04a6b5b24fde70441727ee131ce1db91bbab80be7f70167bfea6444d12f1a265') sha256sums_armv7h=('71b6d9d99e2937ebf5d35f6b05731c7bca7ee270014d09d0547a416cf67085b8') package() { - rm -rf "${srcdir}/Sonarr/Sonarr.Update" - install -d -m 755 "${pkgdir}/usr/lib/sonarr/bin" + install -dm755 "${pkgdir}/usr/lib/sonarr/bin" + + # License + install -Dm644 "${srcdir}/Sonarr/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}" + rm "${srcdir}/Sonarr/LICENSE.md" + cp -dpr --no-preserve=ownership "${srcdir}/Sonarr/"* "${pkgdir}/usr/lib/sonarr/bin" # Disable built in updater. - install -D -m 644 "${srcdir}/package_info" "${pkgdir}/usr/lib/sonarr" + install -Dm644 "${srcdir}/package_info" "${pkgdir}/usr/lib/sonarr" echo "PackageVersion=${pkgver}-${pkgrel}" >> "${pkgdir}/usr/lib/sonarr/package_info" - install -D -m 644 "${srcdir}/sonarr.sysusers" "${pkgdir}/usr/lib/sysusers.d/sonarr.conf" - install -D -m 644 "${srcdir}/sonarr.service" "${pkgdir}/usr/lib/systemd/system/sonarr.service" - install -D -m 644 "${srcdir}/sonarr.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/sonarr.conf" + install -Dm644 "${srcdir}/sonarr.service" "${pkgdir}/usr/lib/systemd/system/sonarr.service" + install -Dm644 "${srcdir}/sonarr.sysusers" "${pkgdir}/usr/lib/sysusers.d/sonarr.conf" + install -Dm644 "${srcdir}/sonarr.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/sonarr.conf" + } diff --git a/sonarr.service b/sonarr.service index d25d254b08a1..268d0b22d4c3 100644 --- a/sonarr.service +++ b/sonarr.service @@ -7,7 +7,7 @@ # UMask=002 [Unit] -Description=Sonarr Service +Description=Sonarr Daemon Wants=network-online.target After=network-online.target @@ -16,8 +16,12 @@ Type=simple User=sonarr Group=sonarr SyslogIdentifier=sonarr +Environment=XDG_DATA_HOME=/var/lib/sonarr +WorkingDirectory=/usr/lib/sonarr ExecStart=/usr/lib/sonarr/bin/Sonarr -nobrowser -data=/var/lib/sonarr Restart=on-failure +RestartSec=5 +KillMode=process [Install] WantedBy=multi-user.target diff --git a/sonarr.sysusers b/sonarr.sysusers index bd3a457f32b7..77bfad313653 100644 --- a/sonarr.sysusers +++ b/sonarr.sysusers @@ -1,2 +1,2 @@ -u sonarr - - /var/lib/sonarr +u sonarr - "Sonarr Daemon" /var/lib/sonarr g sonarr - |