From 5f0e0731ec78796dc2e264a2c8efa3f266de0356 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 23 Apr 2026 08:44:17 +0200 Subject: [PATCH] Import validpgpkeys instead from PKGBUILD --- build/build.sh | 9 ++++++++- pkgbuilds/shared/voxtype-bin/PKGBUILD | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build/build.sh b/build/build.sh index bc02478..2d9aea4 100755 --- a/build/build.sh +++ b/build/build.sh @@ -156,7 +156,14 @@ build_package() { echo " New package (version: $pkgbuild_version)" fi - # Import package-specific PGP keys if they exist + # Import PGP keys from PKGBUILD validpgpkeys and keys/pgp/ directory + local pgp_keys=$(bash -c 'source PKGBUILD 2>/dev/null; echo "${validpgpkeys[@]}"') + if [[ -n "$pgp_keys" ]]; then + echo " Importing PGP keys from validpgpkeys..." + for key in $pgp_keys; do + gpg --receive-keys "$key" 2>/dev/null && echo " Received $key" || echo " Failed to receive $key" + done + fi if [[ -d "keys/pgp" ]]; then echo " Importing package-specific PGP keys..." for keyfile in keys/pgp/*.asc; do diff --git a/pkgbuilds/shared/voxtype-bin/PKGBUILD b/pkgbuilds/shared/voxtype-bin/PKGBUILD index 01c5a28..ed7b24c 100644 --- a/pkgbuilds/shared/voxtype-bin/PKGBUILD +++ b/pkgbuilds/shared/voxtype-bin/PKGBUILD @@ -58,7 +58,6 @@ source=( "LICENSE-$pkgver::https://raw.githubusercontent.com/peteonrails/voxtype/v$pkgver/LICENSE" "README-$pkgver.md::https://raw.githubusercontent.com/peteonrails/voxtype/v$pkgver/README.md" ) -validpgpkeys=('7DA2709247D75BC6') sha256sums=( # Whisper binaries '505933791bb9389ef851813c404eefe63b186eba3aa842b2b321a164ecb8a6db' # voxtype-avx2