pmaports/main/postmarketos-ui-hildon/APKBUILD
Asriel Dreemurr 5b1a20fbaf
main/postmarketos-ui-*: fix lightdm autologin after reinstall (!385)
When the UI package is reinstalled (due to the package being recompiled
or upgraded), it runs $pkgname.post-upgrade instead of
$pkgname.post-install which would run the sed replacement LightDM
autologin. This will cause LightDM to show the greeter when the UI
package is rebuilt, and the user ran pmbootstrap install without
deleting the old chroot.

Signed-off-by: Asriel Dreemurr <asriel.danctnix@gmail.com>
Reviewed-by: Danct12 <danct12@disroot.org>
Signed-off-by: Danct12 <danct12@disroot.org>
2019-06-04 20:42:13 +02:00

29 lines
1.3 KiB
Text

pkgname=postmarketos-ui-hildon
pkgver=1
pkgrel=7
pkgdesc="(X11) Lightweight GTK+2 UI (optimized for single-touch touchscreens)"
url="https://postmarketos.org"
arch="noarch"
license="GPL3+"
depends="dbus-x11 gtk+2.0-maemo hildon-desktop hildon-theme-alpha mesa xorg-server lightdm"
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall $pkgname.post-upgrade"
source="60-lightdm-autologin.conf hildon.desktop xinitrc_hildon.sh"
options="!check"
package() {
# Default theme
mkdir -p "$pkgdir"/usr/share/themes
ln -s /usr/share/themes/alpha "$pkgdir"/usr/share/themes/default
install -Dm644 "$srcdir"/hildon.desktop \
"$pkgdir"/usr/share/xsessions/hildon.desktop
install -Dm755 "$srcdir"/xinitrc_hildon.sh \
"$pkgdir"/etc/postmarketos-ui/xinitrc_hildon.sh
install -Dm644 "$srcdir"/60-lightdm-autologin.conf \
"$pkgdir"/usr/share/lightdm/lightdm.conf.d/60-autologin.conf
}
sha512sums="7abdefbffd24c5c7cd1400045895ee2c2cad933398bf37c749594efb698767efdac95aced9c1e7ea26f2333a2e9c877a0698ab5d086d7fbbd2972f261f6beb87 60-lightdm-autologin.conf
c191ccc783d6d1acfdfb6c93214458323d784533257fa90cc5daeff605983b97fe016c5d3a62cb2e09645bd2016648529f7f699a38b2c3383aa9cc0b6ce9a4ac hildon.desktop
5ef5710bee7bde99e1f240eb8873239c452b55c6dc943930e181d091835824094cf56bf29ae1b34d792ba0ce27f76e30ea69f3c125dda3bf286eaaaba8c8e6ae xinitrc_hildon.sh"