feat(moonarch-git): stage + deploy mpv configs via post_install
Some checks failed
Build and publish packages / build-and-publish (push) Failing after 9s
Some checks failed
Build and publish packages / build-and-publish (push) Failing after 9s
Stages defaults/etc/mpv/ to /usr/share/moonarch/mpv/ and copies mpv.conf + modernz.conf into /etc/mpv/ on install. modernz.conf deliberately overwrites the AUR default from mpv-modernz-git. pkgrel bumped to 11.
This commit is contained in:
parent
26eac512bf
commit
bb36df30bc
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
pkgname=moonarch-git
|
pkgname=moonarch-git
|
||||||
pkgver=r116.d5c1b8a
|
pkgver=r116.d5c1b8a
|
||||||
pkgrel=10
|
pkgrel=11
|
||||||
pkgdesc="Moonarch desktop environment defaults — Niri, Waybar, Catppuccin Mocha"
|
pkgdesc="Moonarch desktop environment defaults — Niri, Waybar, Catppuccin Mocha"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://gitea.moonarch.de/nevaforget/moonarch"
|
url="https://gitea.moonarch.de/nevaforget/moonarch"
|
||||||
@ -195,6 +195,12 @@ package() {
|
|||||||
install -Dm644 defaults/xdg/swaync/style.css \
|
install -Dm644 defaults/xdg/swaync/style.css \
|
||||||
"$pkgdir/usr/share/moonarch/swaync/style.css"
|
"$pkgdir/usr/share/moonarch/swaync/style.css"
|
||||||
|
|
||||||
|
# --- mpv configs (deployed by .install, modernz.conf owned by mpv-modernz-git) ---
|
||||||
|
install -Dm644 defaults/etc/mpv/mpv.conf \
|
||||||
|
"$pkgdir/usr/share/moonarch/mpv/mpv.conf"
|
||||||
|
install -Dm644 defaults/etc/mpv/script-opts/modernz.conf \
|
||||||
|
"$pkgdir/usr/share/moonarch/mpv/modernz.conf"
|
||||||
|
|
||||||
# --- Reference configs for greetd/moongreet (deployed by .install, not owned) ---
|
# --- Reference configs for greetd/moongreet (deployed by .install, not owned) ---
|
||||||
install -Dm644 defaults/etc/greetd/config.toml \
|
install -Dm644 defaults/etc/greetd/config.toml \
|
||||||
"$pkgdir/usr/share/moonarch/greetd/config.toml"
|
"$pkgdir/usr/share/moonarch/greetd/config.toml"
|
||||||
|
|||||||
@ -29,6 +29,12 @@ post_install() {
|
|||||||
cp /usr/share/moonarch/swaync/config.json /etc/xdg/swaync/config.json
|
cp /usr/share/moonarch/swaync/config.json /etc/xdg/swaync/config.json
|
||||||
cp /usr/share/moonarch/swaync/style.css /etc/xdg/swaync/style.css
|
cp /usr/share/moonarch/swaync/style.css /etc/xdg/swaync/style.css
|
||||||
|
|
||||||
|
# Deploy mpv configs (modernz.conf owned by mpv-modernz-git, overwrite deliberately)
|
||||||
|
install -Dm644 /usr/share/moonarch/mpv/mpv.conf /etc/mpv/mpv.conf
|
||||||
|
if [ -d /etc/mpv/script-opts ]; then
|
||||||
|
cp /usr/share/moonarch/mpv/modernz.conf /etc/mpv/script-opts/modernz.conf
|
||||||
|
fi
|
||||||
|
|
||||||
# Deploy Walker config override to skel and existing user homes.
|
# Deploy Walker config override to skel and existing user homes.
|
||||||
# Only copies if user has no config yet — never overwrites manual edits.
|
# Only copies if user has no config yet — never overwrites manual edits.
|
||||||
install -Dm644 /usr/share/moonarch/walker-config.toml \
|
install -Dm644 /usr/share/moonarch/walker-config.toml \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user