main/postmarketos-ui-{mate,xfce4}: separate openrc and main post-install scripts (MR 5735)

Split the post-install scripts for the main package and the openrc subpackage.
They act on different things.

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Jakob Hauser 2024-10-27 14:08:10 +01:00 committed by Stefan Hansson
parent f568f4e2ec
commit 6e00f34f61
No known key found for this signature in database
GPG Key ID: ACD854892B38D898
8 changed files with 12 additions and 6 deletions

View File

@ -2,7 +2,7 @@
# Maintainer: Jakko <jahau@rocketmail.com>
pkgname=postmarketos-ui-mate
pkgver=7
pkgrel=4
pkgrel=5
pkgdesc="(X11) MATE Desktop Environment, fork of GNOME2 (stylus recommended)"
url="http://mate-desktop.org/"
arch="noarch"
@ -32,6 +32,7 @@ _pmb_recommends="
onboard
unclutter-xfixes
"
install="$pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-openrc"
source="
000-system-background.gschema.override

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@
# Maintainer: Jakko <jahau@rocketmail.com>
pkgname=postmarketos-ui-xfce4
pkgver=0.5.2
pkgrel=4
pkgrel=5
pkgdesc="(X11) Lightweight desktop (stylus recommended)"
url="https://gitlab.postmarketos.org/postmarketOS/xfce4-phone"
arch="noarch"
@ -37,6 +37,7 @@ _pmb_recommends="
xfce4-terminal
xfce4-whiskermenu-plugin
"
install="$pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-openrc"
source="
xfce4-phone-$pkgver.tar.gz::https://gitlab.postmarketos.org/postmarketOS/xfce4-phone/-/archive/$pkgver/xfce4-phone-$pkgver.tar.gz

View File

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

View File

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

View File

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