Import validpgpkeys instead from PKGBUILD
This commit is contained in:
+8
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user