mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-08-13 15:43:47 -04:00
45 lines
1.9 KiB
Bash
45 lines
1.9 KiB
Bash
# Maintainer: Daniel Egeberg <daniel.egeberg@gmail.com>
|
|
# Contributor: Justin Dray <justin@dray.be>
|
|
pkgname="sonarr"
|
|
pkgver="2.0.0.5228"
|
|
pkgrel=2
|
|
pkgdesc="PVR for newsgroup users"
|
|
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'
|
|
source=("https://update.sonarr.tv/v2/master/mono/NzbDrone.master.${pkgver}.mono.tar.gz"
|
|
"sonarr.sh"
|
|
"sonarr.service"
|
|
"sonarr.sysusers")
|
|
noextract=()
|
|
sha512sums=('3281e5a487dce61e0bc7c5c83381465615941a7ccd49a3b593e1ff62d9ce83ae19addd1b08a83ecef5c6be613fe1fa52e5217ff19fddcd03f0f00a955f041e9e'
|
|
'84efa2eebd9afe6b74203aefdc3fdbd4088ecfad17dbe929396f1ffc639743b615a9b75566a0b45d6b7925bd5675368015047c6d65c1421ffe8712728f350695'
|
|
'591c76551f511198afa71b98bd5c1e3a800af4c24f8be3065148a0dccce85dcb2cdbad03e55efb66441f900df3b97043ea6bd1574cc0653808b8ab0e54abd999'
|
|
'35af6024f61003c83e1b35bc5658bd8dbce65cadb6f06e6415de20f4c25ab4c4f107224c27668810f99c4a00bfd24175176c35a4b660243935aef872a39ebce7')
|
|
|
|
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"
|
|
|
|
install -Dm644 "$srcdir/sonarr.sysusers" "$pkgdir/usr/lib/sysusers.d/sonarr.conf"
|
|
}
|