mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
alarm/kodi-rpi to 20.0-3
Until FS#77341 is resolved, add work-around to kodi.install to fix audio
This commit is contained in:
parent
66d9850e93
commit
4c8f1e8bea
2 changed files with 8 additions and 5 deletions
|
@ -21,7 +21,7 @@ _commit=2464903eb19ac84f8883a78f4f8cb626bed225d7
|
|||
_clangbuild=
|
||||
|
||||
pkgver=20.0
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
arch=('aarch64' 'armv7h')
|
||||
url="https://github.com/graysky2/xbmc/tree/gs-gbm_nexus"
|
||||
license=('GPL2')
|
||||
|
|
|
@ -24,14 +24,17 @@ post_install() {
|
|||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
# version 19.0-7 moves kodi.service to user.slice so warn users about data loss
|
||||
if (($(vercmp 19.0-7 $2) > 0)); then
|
||||
|
||||
# https://bugs.archlinux.org/task/77341
|
||||
if (($(vercmp $1 20.0-2) > 0)); then
|
||||
if ! grep -q -r '^KODI_AE_SINK=ALSA' /etc/conf.d/kodi-standalone; then
|
||||
cat <<END
|
||||
|
||||
>>> kodi.service now runs in systemd's user.slice, see man kodi.service for
|
||||
important info on how to reboot or shutdown the system to avoid data loss!
|
||||
>>> If audio is broken, add the following line to /etc/conf.d/kodi-standalone
|
||||
then restart kodi.service: KODI_AE_SINK=ALSA
|
||||
|
||||
END
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue