pmaports/main/postmarketos-ui-matchbox/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

22 lines
1 KiB
Text

pkgname=postmarketos-ui-matchbox
pkgver=1
pkgrel=4
pkgdesc="(X11) Very basic user interface for handhelds"
url="https://matchbox-project.org"
arch="noarch"
license="GPL-2.0-only"
depends="matchbox-common matchbox-panel matchbox-desktop matchbox-keyboard matchbox-window-manager xterm xorg-server dbus-x11 mesa-egl gtk+2.0 lightdm"
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-deinstall $pkgname.post-upgrade"
source="matchbox.desktop 60-lightdm-autologin.conf"
options="!check"
package() {
install -Dm644 "$srcdir"/matchbox.desktop \
"$pkgdir"/usr/share/xsessions/matchbox.desktop
install -Dm644 "$srcdir"/60-lightdm-autologin.conf \
"$pkgdir"/usr/share/lightdm/lightdm.conf.d/60-autologin.conf
}
sha512sums="1ceae6d4939cdddf14602471f52cf409e4094a81718ef5d7ea83adf5bf3d7ca8d13e15b8a98f99dee54bb8703038ea31abd74ad1fbe8d2c752d5f1a56310f508 matchbox.desktop
366a75dc36b123f184e4a9296784b22fe1b64de278c508e19536c150b44536b653ae819ca449d53f430fb88f9d853e10a2b64dc7aeb39d93ee763b67a13d7e1d 60-lightdm-autologin.conf"