summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraudiolinux2018-10-15 10:45:16 +0200
committeraudiolinux2018-10-15 10:45:16 +0200
commitc574bf8f7ef1a94ef6ad4b9a45b0c79e1c87ac05 (patch)
treede0b740b4bcb8c44215eb6f4570807abf76737e7
parent321892b2854c9372e668b6eb6378a108d01b88bc (diff)
downloadaur-c574bf8f7ef1a94ef6ad4b9a45b0c79e1c87ac05.tar.gz
Added hqplayerd2 systemd service as in original package
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD9
-rw-r--r--hqplayerd2.service22
3 files changed, 32 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dbfa5da5a7a..30c2c713cbf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Sun Oct 14 15:13:38 UTC 2018
+# Mon Oct 15 08:43:58 UTC 2018
pkgbase = hqplayer-embedded
pkgdesc = Signalyst HQPlayer Embedded HQPlayer - the high-end upsampling multichannel software HD-audio player
pkgver = 4.6.0
- pkgrel = 1
+ pkgrel = 2
url = http://www.signalyst.com/custom.html
arch = x86_64
license = custom
@@ -16,8 +16,10 @@ pkgbase = hqplayer-embedded
depends = rygel
source = https://www.signalyst.eu/bins/hqplayerd/bionic/hqplayerd_4.6.0-20_amd64.deb
source = hqplayerd.service
+ source = hqplayerd2.service
sha256sums = SKIP
sha256sums = 5d4194a704979b3ff92482e155769460906745a66e759142eba33a2226f9cb3a
+ sha256sums = 9b19b2236e342672a5e8d1e046623e3ba0d97ce4755134a371a100927dd9ed54
pkgname = hqplayer-embedded
diff --git a/PKGBUILD b/PKGBUILD
index 5cd4f733877..55b449b897f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,16 +3,16 @@
pkgname=hqplayer-embedded
_debpkgver=4.6.0-20
pkgver=4.6.0
-pkgrel=1
+pkgrel=2
pkgdesc="Signalyst HQPlayer Embedded
HQPlayer - the high-end upsampling multichannel software HD-audio player"
arch=('x86_64')
url="http://www.signalyst.com/custom.html"
license=('custom')
depends=('alsa-lib' 'glibc' 'flac' 'gcc-libs' 'libgmpris' 'glib2' 'rygel')
-source=("https://www.signalyst.eu/bins/hqplayerd/bionic/hqplayerd_"$_debpkgver"_amd64.deb" 'hqplayerd.service')
+source=("https://www.signalyst.eu/bins/hqplayerd/bionic/hqplayerd_"$_debpkgver"_amd64.deb" 'hqplayerd.service' 'hqplayerd2.service')
sha256sums=('SKIP'
-'5d4194a704979b3ff92482e155769460906745a66e759142eba33a2226f9cb3a')
+'5d4194a704979b3ff92482e155769460906745a66e759142eba33a2226f9cb3a' '9b19b2236e342672a5e8d1e046623e3ba0d97ce4755134a371a100927dd9ed54')
package() {
bsdtar xf data.tar.xz -C "$srcdir"
@@ -44,6 +44,9 @@ package() {
install -Dm644 "hqplayerd.service" \
"$pkgdir/usr/lib/systemd/user/hqplayerd.service"
+ install -Dm644 "hqplayerd2.service" \
+ "$pkgdir/usr/lib/systemd/system/hqplayerd.service"
+
install -Dm644 "$srcdir/var/hqplayer/web/default-cover.png" \
"$pkgdir/var/hqplayer/web/default-cover.png"
diff --git a/hqplayerd2.service b/hqplayerd2.service
new file mode 100644
index 00000000000..8bba74bdea1
--- /dev/null
+++ b/hqplayerd2.service
@@ -0,0 +1,22 @@
+[Unit]
+Description=HQPlayer Embedded daemon
+# if your distro uses systemd-networkd you may want to add
+# systemd-networkd-wait-online.service
+Requires=network-online.target sound.target systemd-udev-settle.service
+After=network-online.target sound.target systemd-udev-settle.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/hqplayerd
+Restart=always
+RestartSec=2
+EnvironmentFile=-/etc/default/hqplayerd
+User=hqplayer
+Nice=-10
+IOSchedulingClass=realtime
+LimitMEMLOCK=1G
+LimitNICE=-10
+LimitRTPRIO=98
+
+[Install]
+WantedBy=multi-user.target