summarylogtreecommitdiffstats
path: root/hqplayer-embedded.install
diff options
context:
space:
mode:
authorblackhole2021-04-20 13:56:15 +0200
committerblackhole2021-04-20 13:56:15 +0200
commit51284359f4abe5df0f59e18bb23040580e19b478 (patch)
tree053383dfe573e7b48d16c76a0218299c43d80748 /hqplayer-embedded.install
parent1f55122af653fa089f4aae403c955da281380bff (diff)
downloadaur-51284359f4abe5df0f59e18bb23040580e19b478.tar.gz
Using sysusers.d and tmpfiles.d for hqplayer user
Diffstat (limited to 'hqplayer-embedded.install')
-rw-r--r--hqplayer-embedded.install25
1 files changed, 25 insertions, 0 deletions
diff --git a/hqplayer-embedded.install b/hqplayer-embedded.install
new file mode 100644
index 00000000000..b9cd4e4a7f9
--- /dev/null
+++ b/hqplayer-embedded.install
@@ -0,0 +1,25 @@
+post_install () {
+chown -R hqplayer:hqplayer /var/hqplayer
+chown -R hqplayer:hqplayer /etc/hqplayer
+cd /usr/lib
+ln libgupnp-1.2.so.0 libgupnp-1.0.so.4
+ln libomp.so libomp.so.5
+}
+
+post_upgrade() {
+chown -R hqplayer:hqplayer /var/hqplayer
+chown -R hqplayer:hqplayer /etc/hqplayer
+cd /usr/lib
+if [ ! -f "/usr/lib/libgupnp-1.0.so.4" ]; then
+ln libgupnp-1.2.so.0 libgupnp-1.0.so.4
+fi
+if [ ! -f "/usr/lib/libomp.so.5" ]; then
+ln libomp.so libomp.so.5
+fi
+}
+
+post_remove() {
+cd /usr/lib
+rm libgupnp-1.0.so.4
+rm libomp.so.5
+}