diff --git a/PKGBUILD b/PKGBUILD index 2f73f01..70d57dc 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -8,7 +8,7 @@ # Contributor: Maxime Gauduin pkgname=kodi-standalone-service -pkgver=1.6 +pkgver=1.7 pkgrel=1 pkgdesc="Systemd service and user to autostart kodi at boot" arch=('any') @@ -18,7 +18,7 @@ depends=('systemd' 'xorg-server' 'xorg-xinit' 'kodi') replaces=('xbmc-standalone-service') install=readme.install source=("https://github.com/graysky2/$pkgname/archive/v$pkgver.tar.gz") -sha256sums=('ce46d0e1e858ffabccd05de0d471323f680b510e5986fdd1ea13227e98f3b226') +sha256sums=('44a4f1ad4e800bf3973d164b403742b53789e7006ba113ed6b569e3e6353ac70') package() { install -Dm644 "$srcdir/$pkgname-$pkgver/init/kodi.service" \ diff --git a/readme.install b/readme.install index d77d5d5..52d1370 100644 --- a/readme.install +++ b/readme.install @@ -47,3 +47,13 @@ post_message() { echo echo "allowed_users = anybody" } + +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 + fi +}