pkgname=omarchycn-keyring
pkgver=20260824
pkgrel=2
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.key omarchycn-release.key omarchycn-trusted)
sha256sums=(SKIP SKIP SKIP)

build() {
  export GNUPGHOME="$srcdir/gnupg"
  mkdir -p -m700 "$GNUPGHOME"
  gpg --import omarchycn-registry.key omarchycn-release.key
  gpg --export > 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"
}
