main/postmarketos-ui-sxmo: add post-upgrade and pre-deinstall hooks (MR 1952)

This commit is contained in:
Maarten van Gompel 2021-02-13 11:38:58 +01:00 committed by Alexey Min
parent e4820e1ed2
commit 7c62928fd5
No known key found for this signature in database
GPG key ID: 0B19D2A65870B448
4 changed files with 12 additions and 6 deletions

View file

@ -1,13 +1,13 @@
# Maintainer: Miles Alan <m@milesalan.com>
pkgname=postmarketos-ui-sxmo
pkgver=1.3.0
pkgrel=1
pkgver=1.3.1
pkgrel=0
pkgdesc="(X11) Simple X Mobile: Mobile environment based on simple & suckless software (best compatibility on pinephone)"
url="http://sr.ht/~mil/Sxmo"
arch="noarch !armhf"
license="MIT"
depends="sxmo-xdm-config sxmo-xdm-config-openrc sxmo-utils-openrc"
install="$pkgname.post-install"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
_pmb_recommends="
firefox-esr
gnome-icon-theme

View file

@ -1,5 +1,5 @@
#!/bin/sh
rc-update -q add sxmo-pinephone default
rc-update -q add modemmanager default
rc-update -q add xdm default
rc-update add sxmo-pinephone default
rc-update add modemmanager default
rc-update add xdm default

View file

@ -0,0 +1 @@
postmarketos-ui-sxmo.post-install

View file

@ -0,0 +1,5 @@
#!/bin/sh
rc-update del sxmo-pinephone default
rc-update del modemmanager default
rc-update del xdm default