omarchy-settings: ship the pacman platform guard when the source has it
The guard hook and the script it runs install together from omarchy-settings, so they are resident before the runtime and hardware packages. Conditional, so builds from sources without them are unchanged.
This commit is contained in:
1 parent
ed6a3869c7
commit
00fac82ad3
2 files changed
+22
No files matched your search
@@ -364,6 +364,17 @@ EOF
|
||||
install -Dm755 default/systemd/system-sleep/unmount-fuse \
|
||||
"$pkgdir/usr/lib/systemd/system-sleep/unmount-fuse"
|
||||
|
||||
# Pacman platform guard: refuses packages tagged for another hardware
|
||||
# platform. It ships here, not in omarchy, so it is resident before the
|
||||
# runtime and any hardware package install; the hook and the script it runs
|
||||
# travel together. Conditional until the pinned source carries them.
|
||||
if [[ -f default/libalpm/hooks/00-omarchy-platform-guard.hook ]]; then
|
||||
install -Dm644 default/libalpm/hooks/00-omarchy-platform-guard.hook \
|
||||
"$pkgdir/usr/share/libalpm/hooks/00-omarchy-platform-guard.hook"
|
||||
install -Dm755 default/libalpm/scripts/omarchy-platform-guard \
|
||||
"$pkgdir/usr/share/libalpm/scripts/omarchy-platform-guard"
|
||||
fi
|
||||
|
||||
# Branding assets (logos, icons).
|
||||
install -Dm644 logo.txt "$pkgdir/usr/share/omarchy/logo.txt"
|
||||
install -Dm644 logo.svg "$pkgdir/usr/share/omarchy/logo.svg"
|
||||
|
||||
@@ -362,6 +362,17 @@ EOF
|
||||
install -Dm755 default/systemd/system-sleep/unmount-fuse \
|
||||
"$pkgdir/usr/lib/systemd/system-sleep/unmount-fuse"
|
||||
|
||||
# Pacman platform guard: refuses packages tagged for another hardware
|
||||
# platform. It ships here, not in omarchy, so it is resident before the
|
||||
# runtime and any hardware package install; the hook and the script it runs
|
||||
# travel together. Conditional until the pinned source carries them.
|
||||
if [[ -f default/libalpm/hooks/00-omarchy-platform-guard.hook ]]; then
|
||||
install -Dm644 default/libalpm/hooks/00-omarchy-platform-guard.hook \
|
||||
"$pkgdir/usr/share/libalpm/hooks/00-omarchy-platform-guard.hook"
|
||||
install -Dm755 default/libalpm/scripts/omarchy-platform-guard \
|
||||
"$pkgdir/usr/share/libalpm/scripts/omarchy-platform-guard"
|
||||
fi
|
||||
|
||||
# Branding assets (logos, icons).
|
||||
install -Dm644 logo.txt "$pkgdir/usr/share/omarchy/logo.txt"
|
||||
install -Dm644 logo.svg "$pkgdir/usr/share/omarchy/logo.svg"
|
||||
|
||||
Reference in new issue
Block a user