summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD84
-rw-r--r--lidarr.service19
-rw-r--r--package_info5
4 files changed, 88 insertions, 44 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9cef91c28a8b..d62c9eb71fb2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,12 @@
pkgbase = lidarr
- pkgdesc = Music downloader for usenet and torrents.
- pkgver = 0.7.1.1381
+ pkgdesc = Music download automation for usenet and torrents.
+ pkgver = 2.3.3.4204
pkgrel = 1
url = https://github.com/lidarr/Lidarr
- arch = any
+ arch = x86_64
+ arch = aarch64
+ arch = armv7h
license = GPL3
- depends = mono
depends = sqlite
depends = chromaprint
optdepends = sabnzbd: usenet downloader
@@ -19,14 +20,21 @@ pkgbase = lidarr
optdepends = qbittorrent-nox: torrent downloader (no X)
optdepends = jackett: torrent indexer proxy
optdepends = libgdiplus: provides a gdi+ compatible api
- source = https://github.com/lidarr/Lidarr/releases/download/v0.7.1.1381/Lidarr.master.0.7.1.1381.linux.tar.gz
+ options = !strip
+ options = staticlibs
source = lidarr.service
source = lidarr.tmpfiles
source = lidarr.sysusers
- sha512sums = b33c205acb507898952a61eb2e5cc7fd73abf99efd3201cc6e7b8af6774764b907788a0c7d9c69a41c5325e1129083dae905beec337404370d17373b26b9efab
- sha512sums = e339ad3fe7d7569d65346309ffa69ea5f68001a45ae6e1a494e786fc4711a189f38cd73bb4d9bafdb3e5315a625f1c25301804473830418d8284192cb0c04c84
+ source = package_info
+ sha512sums = fdf34b2105bbdd546bd4e9520e8c69ae594b87ea8c2581b8bdb69b54d7c54b6647187aa4dcb09d48d679a6f5b9ebf405ee90103dd8ef5535c4cf6d40e1178f66
sha512sums = e40ce79a3e1741e7e06312797e652a85d199bd6d719ef953ea8c3c030756ee44e202956ac9e13cff17fac38312c27398f457f79923a7d0f56bd563a69af6ab63
sha512sums = ffd466960527256d8de1d9887d90d4da87486eff062950c46cbc4fd4af1ef89e7d5c070ef1e649b23a95fbab15651e289fd5bdc6d34649e4a6ecdf2f6da06622
+ sha512sums = cabbd3d6387f4198097573da23032d80c1fec11835c180e55a28ee54c79c821d3c49c039762cc3ddc5126efc37d50d93cdd89a75ff809a3d533533a30353933e
+ source_x86_64 = lidarr-2.3.3.4204-linux-core-x64.tar.gz::https://services.lidarr.audio/v1/update/master/updatefile?version=2.3.3.4204&os=linux&runtime=netcore&arch=x64
+ sha512sums_x86_64 = 989a55eb85ef6ac2919d80c9e64735475e250e6552b7486100c3e2c1caa3a5f0f0e2158954b2159dcbbb3498d4d7f98e4e4818347d54ee88db10cc33b29034df
+ source_aarch64 = lidarr-2.3.3.4204-linux-core-arm64.tar.gz::https://services.lidarr.audio/v1/update/master/updatefile?version=2.3.3.4204&os=linux&runtime=netcore&arch=arm64
+ sha512sums_aarch64 = 4850090865bac2d0e0d3a93875789647f1ecc8ca1149758e6b15ddadf683686606d0a40305ae8ad8273b2823eff0acf10c26262e112b6ea38d138bac64661b80
+ source_armv7h = lidarr-2.3.3.4204-linux-core-arm.tar.gz::https://services.lidarr.audio/v1/update/master/updatefile?version=2.3.3.4204&os=linux&runtime=netcore&arch=arm
+ sha512sums_armv7h = e8efe57d7622dce10d2e920c6a19420f987bdf687058358e1dbd7a7d5f2c4ac27dbb6fbf5dd0aa741867cbc53f96073ad9d341d1e418fa715126d18268a1a1f8
pkgname = lidarr
-
diff --git a/PKGBUILD b/PKGBUILD
index 3431a39bbeda..f3a3c2100e25 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,66 @@
# Maintainer: Sven Frenzel <aur@frenzel.dk>
+# Maintainer: Donald Webster <fryfrog@gmail.com>
+# Helpful url: https://services.lidarr.audio/v1/update/master?version=0.0.0.0&os=linux&runtime=netcore&arch=x64
pkgname='lidarr'
-pkgver='0.7.1.1381'
+pkgver=2.3.3.4204
pkgrel=1
-pkgdesc='Music downloader for usenet and torrents.'
-arch=(any)
-url='https://github.com/lidarr/Lidarr'
-license=('GPL3')
-depends=('mono' 'sqlite' 'chromaprint')
-optdepends=('sabnzbd: usenet downloader'
- 'nzbget: usenet downloader'
- 'transmission-cli: torrent downloader (CLI and daemon)'
- 'transmission-gtk: torrent downloader (GTK+)'
- 'transmission-qt: torrent downloader (Qt)'
- 'deluge: torrent downloader'
- 'rtorrent: torrent downloader'
- 'qbittorrent: torrent downloader'
- 'qbittorrent-nox: torrent downloader (no X)'
- 'jackett: torrent indexer proxy'
- 'libgdiplus: provides a gdi+ compatible api')
-
-source=("https://github.com/lidarr/Lidarr/releases/download/v${pkgver}/Lidarr.master.${pkgver}.linux.tar.gz"
- 'lidarr.service'
- 'lidarr.tmpfiles'
- 'lidarr.sysusers')
-
-sha512sums=('b33c205acb507898952a61eb2e5cc7fd73abf99efd3201cc6e7b8af6774764b907788a0c7d9c69a41c5325e1129083dae905beec337404370d17373b26b9efab'
- 'e339ad3fe7d7569d65346309ffa69ea5f68001a45ae6e1a494e786fc4711a189f38cd73bb4d9bafdb3e5315a625f1c25301804473830418d8284192cb0c04c84'
+pkgdesc="Music download automation for usenet and torrents."
+arch=('x86_64' 'aarch64' 'armv7h')
+url="https://github.com/lidarr/Lidarr"
+license=("GPL3")
+depends=('sqlite' 'chromaprint')
+options=('!strip' 'staticlibs')
+optdepends=(
+ 'sabnzbd: usenet downloader'
+ 'nzbget: usenet downloader'
+ 'transmission-cli: torrent downloader (CLI and daemon)'
+ 'transmission-gtk: torrent downloader (GTK+)'
+ 'transmission-qt: torrent downloader (Qt)'
+ 'deluge: torrent downloader'
+ 'rtorrent: torrent downloader'
+ 'qbittorrent: torrent downloader'
+ 'qbittorrent-nox: torrent downloader (no X)'
+ 'jackett: torrent indexer proxy'
+ 'libgdiplus: provides a gdi+ compatible api'
+)
+
+source_x86_64=("lidarr-${pkgver}-linux-core-x64.tar.gz::https://services.lidarr.audio/v1/update/master/updatefile?version=${pkgver}&os=linux&runtime=netcore&arch=x64")
+source_aarch64=("lidarr-${pkgver}-linux-core-arm64.tar.gz::https://services.lidarr.audio/v1/update/master/updatefile?version=${pkgver}&os=linux&runtime=netcore&arch=arm64")
+source_armv7h=("lidarr-${pkgver}-linux-core-arm.tar.gz::https://services.lidarr.audio/v1/update/master/updatefile?version=${pkgver}&os=linux&runtime=netcore&arch=arm")
+
+source=(
+ 'lidarr.service'
+ 'lidarr.tmpfiles'
+ 'lidarr.sysusers'
+ 'package_info'
+)
+
+sha512sums=('fdf34b2105bbdd546bd4e9520e8c69ae594b87ea8c2581b8bdb69b54d7c54b6647187aa4dcb09d48d679a6f5b9ebf405ee90103dd8ef5535c4cf6d40e1178f66'
'e40ce79a3e1741e7e06312797e652a85d199bd6d719ef953ea8c3c030756ee44e202956ac9e13cff17fac38312c27398f457f79923a7d0f56bd563a69af6ab63'
- 'ffd466960527256d8de1d9887d90d4da87486eff062950c46cbc4fd4af1ef89e7d5c070ef1e649b23a95fbab15651e289fd5bdc6d34649e4a6ecdf2f6da06622')
+ 'ffd466960527256d8de1d9887d90d4da87486eff062950c46cbc4fd4af1ef89e7d5c070ef1e649b23a95fbab15651e289fd5bdc6d34649e4a6ecdf2f6da06622'
+ 'cabbd3d6387f4198097573da23032d80c1fec11835c180e55a28ee54c79c821d3c49c039762cc3ddc5126efc37d50d93cdd89a75ff809a3d533533a30353933e')
+sha512sums_x86_64=('989a55eb85ef6ac2919d80c9e64735475e250e6552b7486100c3e2c1caa3a5f0f0e2158954b2159dcbbb3498d4d7f98e4e4818347d54ee88db10cc33b29034df')
+sha512sums_aarch64=('4850090865bac2d0e0d3a93875789647f1ecc8ca1149758e6b15ddadf683686606d0a40305ae8ad8273b2823eff0acf10c26262e112b6ea38d138bac64661b80')
+sha512sums_armv7h=('e8efe57d7622dce10d2e920c6a19420f987bdf687058358e1dbd7a7d5f2c4ac27dbb6fbf5dd0aa741867cbc53f96073ad9d341d1e418fa715126d18268a1a1f8')
+
+
package() {
+ # Update environment isn't needed.
rm -rf "${srcdir}/Lidarr/Lidarr.Update"
- install -d -m 755 "${pkgdir}/usr/lib/lidarr"
- cp -dpr --no-preserve=ownership "${srcdir}/Lidarr/"* "${pkgdir}/usr/lib/lidarr"
- chmod -R a=,a+rX,u+w ${pkgdir}/usr/lib/lidarr/
+
+ # The fpcalc binary comes from chromaprint.
+ rm -rf "${srcdir}/Lidarr/fpcalc"
+
+ install -d -m 755 "${pkgdir}/usr/lib/lidarr/bin"
+ cp -dpr --no-preserve=ownership "${srcdir}/Lidarr/"* "${pkgdir}/usr/lib/lidarr/bin"
+ chmod -R a=,a+rX,u+w "${pkgdir}/usr/lib/lidarr/bin"
+ chmod +x "${pkgdir}/usr/lib/lidarr/bin/Lidarr"
+
+ # Disable built in updater.
+ install -D -m 644 "${srcdir}/package_info" "${pkgdir}/usr/lib/lidarr"
+ echo "PackageVersion=${pkgver}-${pkgrel}" >> "${pkgdir}/usr/lib/lidarr/package_info"
install -D -m 644 "${srcdir}/lidarr.service" "${pkgdir}/usr/lib/systemd/system/lidarr.service"
install -D -m 644 "${srcdir}/lidarr.sysusers" "${pkgdir}/usr/lib/sysusers.d/lidarr.conf"
diff --git a/lidarr.service b/lidarr.service
index 76043a81273c..0d9705e1eef2 100644
--- a/lidarr.service
+++ b/lidarr.service
@@ -1,17 +1,22 @@
+# Be sure to use `systemctl edit lidarr` to modify this service with an override.conf because
+# direct changes will be overwritten by package updates.
+#
+# A user per service w/ shared group setup would have an override like:
+# [Service]
+# Group=sharedgroupname
+# UMask=002
+
[Unit]
Description=Lidarr Service
-After=syslog.target network.target
+Wants=network-online.target
+After=network-online.target
[Service]
User=lidarr
Group=lidarr
-ExecStart=/usr/bin/mono --debug /usr/lib/lidarr/Lidarr.exe -nobrowser -data=/var/lib/lidarr
+SyslogIdentifier=lidarr
+ExecStart=/usr/lib/lidarr/bin/Lidarr -nobrowser -data=/var/lib/lidarr
Type=simple
-TimeoutStopSec=20
-
-# Lets built in updater work well.
-Restart=on-failure
-KillMode=process
[Install]
WantedBy=multi-user.target
diff --git a/package_info b/package_info
new file mode 100644
index 000000000000..b61b5cd943bf
--- /dev/null
+++ b/package_info
@@ -0,0 +1,5 @@
+# PackageVersion is added by PKGBUILD
+PackageAuthor=[lidarr](https://aur.archlinux.org/packages/lidarr/)
+UpdateMethod=External
+UpdateMethodMessage=flag [lidarr](https://aur.archlinux.org/packages/lidarr/) [out-of-date](https://aur.archlinux.org/pkgbase/lidarr/flag/), use an [aur helper](https://wiki.archlinux.org/index.php/AUR_helpers) or the [manual method](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages) to update.
+Branch=master