feat(moonarch-git): stage + deploy mpv configs via post_install
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:
nevaforget 2026-04-24 17:32:21 +02:00
parent 26eac512bf
commit bb36df30bc
2 changed files with 13 additions and 1 deletions

View File

@ -5,7 +5,7 @@
pkgname=moonarch-git
pkgver=r116.d5c1b8a
pkgrel=10
pkgrel=11
pkgdesc="Moonarch desktop environment defaults — Niri, Waybar, Catppuccin Mocha"
arch=('any')
url="https://gitea.moonarch.de/nevaforget/moonarch"
@ -195,6 +195,12 @@ package() {
install -Dm644 defaults/xdg/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) ---
install -Dm644 defaults/etc/greetd/config.toml \
"$pkgdir/usr/share/moonarch/greetd/config.toml"

View File

@ -29,6 +29,12 @@ post_install() {
cp /usr/share/moonarch/swaync/config.json /etc/xdg/swaync/config.json
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.
# Only copies if user has no config yet — never overwrites manual edits.
install -Dm644 /usr/share/moonarch/walker-config.toml \