omarchy-settings-dev: ship the platform guard on aarch64 only
No platform package is built for x86_64 and pacman refuses another architecture's package there, so x86 transactions gain nothing from the guard. The x86 HOOKS baseline keeps the busybox line without a detector, so the detector copy goes too. omarchy-settings gets the same change in #638.
This commit is contained in:
1 parent
e8544c4eb5
commit
7f77d82c0f
1 file changed
+6
-4
@@ -1,7 +1,7 @@
|
|||||||
# Maintainer: Ryan Hughes <ryan@omarchy.org>
|
# Maintainer: Ryan Hughes <ryan@omarchy.org>
|
||||||
pkgname='omarchy-settings-dev'
|
pkgname='omarchy-settings-dev'
|
||||||
pkgver=4.0.0.r6663.g3faafba
|
pkgver=4.0.0.r6663.g3faafba
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
# Pinned by the upstream watch in .omarchy/package.json (bin/sync-upstream):
|
# Pinned by the upstream watch in .omarchy/package.json (bin/sync-upstream):
|
||||||
# every quattro tip becomes a commit pin here, so the package is versioned,
|
# every quattro tip becomes a commit pin here, so the package is versioned,
|
||||||
# checksummed and built exactly like a release, just more often. The r-number
|
# checksummed and built exactly like a release, just more often. The r-number
|
||||||
@@ -398,9 +398,11 @@ EOF
|
|||||||
# platform. It ships here, not in omarchy, so it is resident before the
|
# platform. It ships here, not in omarchy, so it is resident before the
|
||||||
# runtime and any hardware package install; the hook, the script it runs and
|
# runtime and any hardware package install; the hook, the script it runs and
|
||||||
# the script's own copy of the platform detector travel together (omarchy
|
# the script's own copy of the platform detector travel together (omarchy
|
||||||
# keeps /usr/bin/omarchy-hw-platform). Conditional until the pinned source
|
# keeps /usr/bin/omarchy-hw-platform). aarch64 only: no platform package is
|
||||||
# carries them.
|
# built for x86_64, so an x86 machine has nothing to guard, and its HOOKS
|
||||||
if [[ -f default/libalpm/hooks/00-omarchy-platform-guard.hook ]]; then
|
# baseline needs no detector. Conditional until the pinned source carries
|
||||||
|
# them.
|
||||||
|
if [[ $CARCH == aarch64 && -f default/libalpm/hooks/00-omarchy-platform-guard.hook ]]; then
|
||||||
install -Dm644 default/libalpm/hooks/00-omarchy-platform-guard.hook \
|
install -Dm644 default/libalpm/hooks/00-omarchy-platform-guard.hook \
|
||||||
"$pkgdir/usr/share/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 \
|
install -Dm755 default/libalpm/scripts/omarchy-platform-guard \
|
||||||
|
|||||||
Reference in new issue
Block a user