summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD9
-rw-r--r--hqplayerd2.service1
-rw-r--r--install12
4 files changed, 24 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 84a342c0621..7a4735e4d22 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
# Generated by mksrcinfo v8
-# Mon Oct 15 09:02:47 UTC 2018
+# Mon Oct 15 13:41:08 UTC 2018
pkgbase = hqplayer-embedded
pkgdesc = Signalyst HQPlayer Embedded HQPlayer - the high-end upsampling multichannel software HD-audio player
pkgver = 4.6.0
- pkgrel = 3
+ pkgrel = 4
url = http://www.signalyst.com/custom.html
+ install = install
arch = x86_64
license = custom
depends = alsa-lib
@@ -14,12 +15,13 @@ pkgbase = hqplayer-embedded
depends = libgmpris
depends = glib2
depends = rygel
+ depends = adduser-deb
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 = 84846c6bbd92d25f01165edfc8dadaad02e79607f756f459a4eeff4662297161
+ sha256sums = 9b19b2236e342672a5e8d1e046623e3ba0d97ce4755134a371a100927dd9ed54
pkgname = hqplayer-embedded
diff --git a/PKGBUILD b/PKGBUILD
index fcd17be6f71..9c4fe9ae095 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,16 +3,17 @@
pkgname=hqplayer-embedded
_debpkgver=4.6.0-20
pkgver=4.6.0
-pkgrel=3
+pkgrel=4
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')
+depends=('alsa-lib' 'glibc' 'flac' 'gcc-libs' 'libgmpris' 'glib2' 'rygel' 'adduser-deb')
source=("https://www.signalyst.eu/bins/hqplayerd/bionic/hqplayerd_"$_debpkgver"_amd64.deb" 'hqplayerd.service' 'hqplayerd2.service')
+install=install
sha256sums=('SKIP'
-'5d4194a704979b3ff92482e155769460906745a66e759142eba33a2226f9cb3a' '84846c6bbd92d25f01165edfc8dadaad02e79607f756f459a4eeff4662297161')
+'5d4194a704979b3ff92482e155769460906745a66e759142eba33a2226f9cb3a' '9b19b2236e342672a5e8d1e046623e3ba0d97ce4755134a371a100927dd9ed54')
package() {
bsdtar xf data.tar.xz -C "$srcdir"
@@ -85,4 +86,6 @@ package() {
install -Dm644 "$srcdir/var/hqplayer/web/speakers.html" \
"$pkgdir/var/hqplayer/web/speakers.html"
+
+ mkdir -p "$pkgdir/var/hqplayer/home"
}
diff --git a/hqplayerd2.service b/hqplayerd2.service
index 9828d61c984..8bba74bdea1 100644
--- a/hqplayerd2.service
+++ b/hqplayerd2.service
@@ -11,6 +11,7 @@ ExecStart=/usr/bin/hqplayerd
Restart=always
RestartSec=2
EnvironmentFile=-/etc/default/hqplayerd
+User=hqplayer
Nice=-10
IOSchedulingClass=realtime
LimitMEMLOCK=1G
diff --git a/install b/install
new file mode 100644
index 00000000000..524c051aed4
--- /dev/null
+++ b/install
@@ -0,0 +1,12 @@
+post_install() {
+adduser --system --disabled-login --disabled-password --home /var/hqplayer/home --ingroup audio hqplayer
+usermod -d /var/hqplayer/home hqplayer
+chown -R hqplayer:root /etc/hqplayer
+chown -R hqplayer:root /var/hqplayer/home
+}
+
+post_remove() {
+userdel -r hqplayer
+rm -rf /var/hqplayer
+rm -rf /etc/hqplayer
+}