Package Details: sonarr 4.0.4.1491-1

Git Clone URL: https://aur.archlinux.org/sonarr.git (read-only, click to copy)
Package Base: sonarr
Description: TV download automation for usenet and torrents.
Upstream URL: https://sonarr.tv/
Licenses: GPL3
Submitter: justin8
Maintainer: degeberg (fryfrog)
Last Packager: fryfrog
Votes: 99
Popularity: 0.37
First Submitted: 2014-11-10 04:45 (UTC)
Last Updated: 2024-04-13 18:56 (UTC)

Dependencies (12)

Required by (11)

Sources (7)

Pinned Comments

fryfrog commented on 2021-06-27 16:05 (UTC) (edited on 2023-12-29 23:28 (UTC) by fryfrog)

If you're interested in the develop branch, see sonarr-develop.

Support: Discord, /r/sonarr, forums or irc.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 15 Next › Last »

ringo commented on 2022-04-06 13:29 (UTC)

Why is this flagged out of date? It is up-to-date.

fryfrog commented on 2021-10-15 16:59 (UTC) (edited on 2021-10-15 17:08 (UTC) by fryfrog)

@eNV25: That doesn't sound crazy, is there any benefit besides tagging in syslog w/ "sonarr"? If I do this for sonarr, I'd probably do it for all the packages I manage... but I've never really run into a need for this, so I'm curious.

You can also always use an override.

Edit: Ah, I think I get it. Since this service runs mono, I bet in syslog it is showing up as mono instead of sonarr.

eNV25 commented on 2021-10-15 14:18 (UTC)

Can you put this in the service file:

[Service]
SyslogIdentifier=sonarr

fryfrog commented on 2021-06-27 16:05 (UTC) (edited on 2023-12-29 23:28 (UTC) by fryfrog)

If you're interested in the develop branch, see sonarr-develop.

Support: Discord, /r/sonarr, forums or irc.

fryfrog commented on 2021-06-27 16:02 (UTC)

@nixit: For sonarr support, check out their Discord, sub-reddit and/or forums.

nixit commented on 2021-06-27 03:07 (UTC)

updated sonarr today, and now when I go to localhost:8989, nothing displays. I stop and started sonarr.service, made sure it's running, yet I can't get the interface to load.

anyone else seeing this?

anonfunc commented on 2021-06-26 23:30 (UTC) (edited on 2021-06-26 23:32 (UTC) by anonfunc)

Assuming nuget and mono-msbuild packages exist, we can probably do 'x86_64' 'aarch64' 'armv7h' for arch right?

I would assume so.

Also, what does your version end up as? I believe their build system spits out 10.x versions for self compiled, unless you do something like what the jacket package does.

It does list "Version 10.0.0.2685" in System -> Status. So I still need to fix that.

And to be clear, I should not switch to this until a newer version of mono comes along? I'm not groking what you mean there. :)

Yes, I tested with mono 6.12.0.147, so probably >=6.12.0.147 then.

fryfrog commented on 2021-06-26 23:18 (UTC)

Also, what does your version end up as? I believe their build system spits out 10.x versions for self compiled, unless you do something like what the jacket package does. And to be clear, I should not switch to this until a newer version of mono comes along? I'm not groking what you mean there. :)

fryfrog commented on 2021-06-26 23:15 (UTC)

Assuming nuget and mono-msbuild packages exist, we can probably do 'x86_64' 'aarch64' 'armv7h' for arch right?

anonfunc commented on 2021-06-26 22:35 (UTC) (edited on 2021-06-27 09:13 (UTC) by anonfunc)

@fryfrog We are currently blocked by FS#71007, which prevents sonarr from successfully building with msbuild. I have tested this patch with mono 6.12.0.147, which works flawlessly.

I want to test a clean chroot again (for possibly missing deps) once mono got a new release out, otherwise this patch works, I tested sonarr in action on my machine and had no problems so far.

diff --git a/PKGBUILD b/PKGBUILD
index 2812b4f..9d3af69 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,20 +3,18 @@
 # Contributor: Justin Dray <justin@dray.be>
 # Helpful URL: http://services.sonarr.tv/v1/releases

-pkgname='sonarr'
-pkgver=3.0.6.1265
+pkgname=sonarr
+pkgver=3.0.6.1266
 pkgrel=1
 pkgdesc='TV download automation for usenet and torrents.'
-arch=(any)
+arch=(x86_64)
 url='https://sonarr.tv/'
 license=('GPL3')
-
 depends=(
   'mono'
   'libmediainfo'
   'sqlite'
 )
-
 optdepends=(
   'sabnzbd: usenet downloader'
   'nzbget: usenet downloader'
@@ -27,26 +25,44 @@ optdepends=(
   'rtorrent: torrent downloader'
   'jackett: torrent indexer proxy'
 )
+makedeps=(
+  'nuget'
+  'mono-msbuild'
+)

 source=(
-  "https://download.sonarr.tv/v3/main/${pkgver}/Sonarr.main.${pkgver}.linux.tar.gz"
+  "https://github.com/Sonarr/Sonarr/archive/refs/tags/v$pkgver.tar.gz"
   'sonarr.service'
   'sonarr.sysusers'
   'sonarr.tmpfiles'
   'package_info'
 )

-noextract=()
-sha256sums=('87098971b27d383b4502f9350dbc919d94f3486b93514b98ba7fde67dc83018b'
+sha256sums=('3973cf80928062b4fd068a45a417a4fb4f26ee6dd740ad92f6198070d54fd652'
             'cafc9dfea7d6f941d7c481d35d83e3228ac35f51ad78a220e2eb1e1bd3652d62'
             'cc3c69f719fa64335f4c5b41b2588f1ec56865fb2202f5919d3668b50b8f398e'
             '7bf87304383b7d58ecab59b3686d00a8f1b6fbe4af3a86da35a887e4cebee411'
             '19112dc0051224b4de66f28077c93b6ee06e163b5194e6aecf62dedf66ff45a9')

+build() {
+  cd "$srcdir/Sonarr-$pkgver"
+  nuget restore src/Sonarr.sln
+  msbuild src/Sonarr.sln -p:Configuration=Release -p:Platform=x86 -t:Build -m
+
+  yarn install
+  yarn run build --env production
+}
+
 package() {
-  rm -rf "${srcdir}/Sonarr/Sonarr.Update"
+  cd "$srcdir/Sonarr-$pkgver"
+  rm -rf _output/{Sonarr.Update,System.IO.Compression,System.Runtime.InteropServices.RuntimeInformation,System.Net.Http,System.Globalization.Extensions,System.Text.Encoding.CodePages,System.Threading.Overlapped,ServiceInstall.*,ServiceUninstall.*,sqlite3.*,MediaInfo.*,Sonarr.exe*,Sonarr.Windows.*,*.pdb}
+  cp src/NzbDrone.Core/Sonarr.Core.dll.config _output
+  for file in _output/Sonarr.Console.exe*; do
+    mv "$file" "${file//.Console/}"
+  done
+
   install -d -m 755 "${pkgdir}/usr/lib/sonarr/bin"
-  cp -dpr --no-preserve=ownership "${srcdir}/Sonarr/"* "${pkgdir}/usr/lib/sonarr/bin"
+  cp -dpr --no-preserve=ownership _output/* "${pkgdir}/usr/lib/sonarr/bin"

   # Disable built in updater.
   install -D -m 644 "${srcdir}/package_info" "${pkgdir}/usr/lib/sonarr"