Import validpgpkeys instead from PKGBUILD

This commit is contained in:
David Heinemeier Hansson
2026-04-23 08:44:17 +02:00
parent b1c46e44dc
commit 5f0e0731ec
2 changed files with 8 additions and 2 deletions
+8 -1
View File
@@ -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
-1
View File
@@ -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