# Maintainer: Daniel Egeberg # Contributor: Justin Dray pkgname="sonarr" pkgver="2.0.0.4374" pkgrel=1 pkgdesc="PVR for newsgroup users. Formerly known as NZBDrone" arch=(any) url="https://sonarr.tv" license=('GPL3') depends=('mono' 'libmediainfo' 'sqlite') optdepends=('sabnzbd: an NZB downloader' 'nzbget: an NZB downloader' 'transmission-cli: a torrent downloader (CLI and daemon version)' 'transmission-gtk: a torrent downloader (GTK+ version)' 'transmission-qt: a torrent downloader (Qt version)' 'deluge: a torrent downloader') install='sonarr.install' provides=('nzbdrone' 'nzbdrone-torrents') conflicts=('nzbdrone' 'nzbdrone-torrents') replaces=('nzbdrone' 'nzbdrone-torrents') source=("https://update.sonarr.tv/v2/master/mono/NzbDrone.master.${pkgver}.mono.tar.gz" "sonarr.sh" "sonarr.service") noextract=() sha512sums=('e18ec5af06f9a0c4fdd3caddcc303367bf963a4669653eec73cad96957b1bd61b35e106d2770da025796ee5c7e25790ead3e9b5b41070ac3dbc632ece2022e8c' '84efa2eebd9afe6b74203aefdc3fdbd4088ecfad17dbe929396f1ffc639743b615a9b75566a0b45d6b7925bd5675368015047c6d65c1421ffe8712728f350695' '438de225c38c26aaa15cae243b18d0be85f3f0e54f1297bf182082a0bdbd936d21928cdcdb899f0f18c6ec32ee88c2e0f0d29b8a2a1cdf98a8e1907cd6f36a2c') package() { cd "$srcdir" install -d -m 755 "${pkgdir}/var/lib/sonarr" msg2 "Install Sonarr in /usr/lib" install -d -m 755 "${pkgdir}/usr/lib/sonarr" cp -dpr --no-preserve=ownership "${srcdir}/NzbDrone/"* "${pkgdir}/usr/lib/sonarr" msg2 "Install executable into /usr/bin" install -D -m755 "${srcdir}/sonarr.sh" "${pkgdir}/usr/bin/sonarr" msg2 "Install sonarr.service" install -D -m 644 "${srcdir}/sonarr.service" "${pkgdir}/usr/lib/systemd/system/sonarr.service" }