summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD2
-rw-r--r--readme.install33
3 files changed, 30 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a4b029f86a37..f123ecc2be5a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Thu Dec 17 16:21:54 UTC 2015
+# Wed Jun 8 13:38:17 UTC 2016
pkgbase = kodi-standalone-service
pkgdesc = Systemd service and user to run kodi in stand-alone mode
pkgver = 1.8
- pkgrel = 2
+ pkgrel = 3
url = https://wiki.archlinux.org/index.php/Kodi#Kodi-standalone-service
install = readme.install
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 144323240397..547d14270d50 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@
pkgname=kodi-standalone-service
pkgver=1.8
-pkgrel=2
+pkgrel=3
pkgdesc="Systemd service and user to run kodi in stand-alone mode"
# Arch ARM users do NOT attempt to use this package on Arch ARM!
# This is only for x86_64 and i686. You have been warned.
diff --git a/readme.install b/readme.install
index 941b8d7fb9ca..92a5cf9d6c2f 100644
--- a/readme.install
+++ b/readme.install
@@ -8,6 +8,15 @@ post_install() {
mkdir /var/lib/kodi/.kodi &&
chown -R kodi:kodi /var/lib/kodi/.kodi
fi
+
+ if [[ -f /usr/lib/xorg/modules/drivers/ati_drv.so ]]; then
+ echo "It has been reported that users of the open source ATI driver"
+ echo "MAY need to create /etc/X11/Xwrapper.config for this package"
+ echo "to work properly."
+ echo .
+ echo "This file should contain the following line:"
+ echo "needs_root_rights = yes"
+ fi
}
post_upgrade() {
@@ -49,11 +58,23 @@ post_remove() {
}
pre_install() {
- /usr/bin/systemctl status xbmc.service &>/dev/null
- if [[ $? -eq 0 ]]; then
- # xbmc is running via this service
- /usr/bin/systemctl stop xbmc.service &>/dev/null
- else
- /bin/true
+ if [ -f /usr/lib/systemd/system/xbmc.service]; then
+ /usr/bin/systemctl status xbmc.service &>/dev/null
+ if [[ $? -eq 0 ]]; then
+ # xbmc is running via this service
+ /usr/bin/systemctl stop xbmc.service &>/dev/null
+ else
+ /bin/true
+ fi
+ fi
+
+ if [ -f /usr/lib/systemd/system/kodi.service]; then
+ /usr/bin/systemctl status kodi.service &>/dev/null
+ if [[ $? -eq 0 ]]; then
+ # kodi is running via this service
+ /usr/bin/systemctl stop kodi.service &>/dev/null
+ else
+ /bin/true
+ fi
fi
}