feat(install): drop paru --pkgbuilds fallback, registry is the only path

The moonarch.install hook used to ensure /etc/paru.conf had Mode = arp
and a [moonarch-pkgbuilds] section. Both exist to let paru resolve
moonarch packages from a PKGBUILD repo — a second mechanism parallel
to the Arch registry, redundant now that the registry DB is stable.

Hook now strips the legacy config on next upgrade. Bump pkgrel so every
installed system picks up the cleanup.
This commit is contained in:
nevaforget committed 2026-04-20 14:19:01 +02:00
1 parent 612d061522
commit 2f460f653a
3 files changed
+12 -9

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@
pkgname=moonarch-git
pkgver=r105.f4f6ede
pkgrel=8
pkgrel=9
pkgdesc="Moonarch desktop environment defaults — Niri, Waybar, Catppuccin Mocha"
arch=('any')
url="https://gitea.moonarch.de/nevaforget/moonarch"
+5 -8
View File
@@ -42,16 +42,13 @@ post_install() {
fi
done < /etc/passwd
# Ensure paru PKGBUILD repo is configured (breaks bootstrap loop otherwise)
# Clean up legacy paru PKGBUILD-repo config. Moonarch now ships binaries
# exclusively through the Arch registry (pacman repo in /etc/pacman.conf);
# the [moonarch-pkgbuilds] section and Mode = arp are obsolete.
PARU_CONF="/etc/paru.conf"
if [ -f "$PARU_CONF" ]; then
if ! grep -q 'Mode.*p' "$PARU_CONF" 2>/dev/null; then
sed -i '/^\[options\]/a Mode = arp' "$PARU_CONF"
fi
if ! grep -q '\[moonarch-pkgbuilds\]' "$PARU_CONF" 2>/dev/null; then
printf '\n[moonarch-pkgbuilds]\nUrl = https://gitea.moonarch.de/nevaforget/moonarch-pkgbuilds.git\n' \
>> "$PARU_CONF"
fi
sed -i '/^Mode[[:space:]]*=[[:space:]]*arp\s*$/d' "$PARU_CONF"
sed -i '/^\[moonarch-pkgbuilds\]$/,/^$/d' "$PARU_CONF"
fi
# Cleanup legacy user-level configs (moved to system-level)