main/postmarketos-ui-kodi: new aport (!561)

This commit is contained in:
Bart Ribbers 2019-08-18 18:38:07 +02:00 committed by Martijn Braam
parent ccd9d6ba43
commit d7eb5d77c3
No known key found for this signature in database
GPG key ID: C4280ACB000B060F
4 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# This file gets removed with postmarketos-ui-kodi, even if modified!
[Seat:*]
autologin-user=username
autologin-user-timeout=0
autologin-session=kodi-wayland

View file

@ -0,0 +1,22 @@
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=postmarketos-ui-kodi
pkgver=1
pkgrel=0
pkgdesc="(Wayland) 10-foot UI useful on TV's"
url="https://kodi.tv"
arch="noarch"
license="GPL-3.0-or-later"
depends="kodi-wayland kodi cage lightdm xorg-server"
install="$pkgname.post-install"
source="60-lightdm-autologin.conf kodi.desktop"
options="!check"
package() {
install -Dm644 "$srcdir"/60-lightdm-autologin.conf \
"$pkgdir"/usr/share/lightdm/lightdm.conf.d/60-autologin.conf
install -Dm644 "$srcdir"/kodi.desktop \
"$pkgdir"/usr/share/wayland-sessions/kodi-wayland.desktop
}
sha512sums="4cbef7ef9b4da927e123ea28c5918f49ec4dc1367774596e1bc192f172e1e09cb9711015e20743a7fbb3bbbc8ca6df2bee66571a28fb530e2e9d24d945eb982a 60-lightdm-autologin.conf
e8ab71c6e7d07c0c22f8f85398f33ecc7ed1b4ec865c8bf8e0d0aa589b51fbb16e79601974139990946c163c7008c67c3798bef29d10300365ac720e296729ef kodi.desktop"

View file

@ -0,0 +1,6 @@
[Desktop Entry]
Name=Kodi (Wayland)
Comment=This session will start Kodi media center
Exec=cage /usr/bin/kodi --windowing wayland
TryExec=/usr/lib/kodi/kodi-wayland
Type=Application

View file

@ -0,0 +1,5 @@
#!/bin/sh
sed -i "s/username/$(getent passwd 10000 | cut -d: -f1)/g" /usr/share/lightdm/lightdm.conf.d/60-autologin.conf
rc-update add lightdm default