# Maintainer: Daniel Egeberg # Contributor: Justin Dray pkgname="sonarr" pkgver="2.0.0.4689" 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=('cb69b592f844882f93c0ca41e1644c43bfee455522225a0e143013a14dddf176180a8879bc5935dc9ac1342b5de47220e10cb0f2ecdee11838ffbda3431b4f83' '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" }