Add omarchycn-keyring package and container build script

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp
This commit is contained in:
2026-08-24 19:00:28 -04:00
co-authored by Claude Fable 5
parent 04b2d8836e
commit a867157978
5 changed files with 80 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
# Builds omarchycn-keyring in a clean archlinux container; output to packages/out/
set -euo pipefail
ROOT=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
docker run --rm -v "$ROOT:/src:ro" -v "$ROOT/packages/out:/out" archlinux/archlinux:latest bash -c '
set -euo pipefail
pacman -Sy --noconfirm --quiet base-devel > /dev/null
useradd -m builder
cp -r /src/packages/omarchycn-keyring /home/builder/pkg
cp /src/cn/keys/omarchycn-registry.asc /src/cn/keys/omarchycn-release.asc /home/builder/pkg/
chown -R builder /home/builder/pkg
cd /home/builder/pkg
sudo -u builder makepkg --noconfirm
install -m644 omarchycn-keyring-*.pkg.tar.zst /out/
'
echo "Built: $(ls "$ROOT"/packages/out/omarchycn-keyring-*.pkg.tar.zst)"
+20
View File
@@ -0,0 +1,20 @@
pkgname=omarchycn-keyring
pkgver=20260824
pkgrel=1
pkgdesc="OmarchyCN PGP keyring: package registry and release signing keys"
arch=(any)
url="https://git.zacharyzhang.com/ZacharyZhang-NY/omarchycn"
license=(MIT)
install=omarchycn-keyring.install
source=(omarchycn-registry.asc omarchycn-release.asc omarchycn-trusted)
sha256sums=(SKIP SKIP SKIP)
build() {
cat omarchycn-registry.asc omarchycn-release.asc | gpg --dearmor > omarchycn.gpg
}
package() {
install -Dm644 omarchycn.gpg "$pkgdir/usr/share/pacman/keyrings/omarchycn.gpg"
install -Dm644 omarchycn-trusted "$pkgdir/usr/share/pacman/keyrings/omarchycn-trusted"
install -Dm644 /dev/null "$pkgdir/usr/share/pacman/keyrings/omarchycn-revoked"
}
@@ -0,0 +1,7 @@
post_install() {
usr/bin/pacman-key --populate omarchycn
}
post_upgrade() {
usr/bin/pacman-key --populate omarchycn
}
@@ -0,0 +1,2 @@
74DCF57ACD812B24D959F146BD386048867B33B4:4:
04490F065F6ADD262A7243506EDF7B8603B5D247:4: