Import validpgpkeys instead from PKGBUILD
This commit is contained in:
1 parent
b1c46e44dc
commit
5f0e0731ec
2 files changed
+8
-2
No files matched your search
+8
-1
@@ -156,7 +156,14 @@ build_package() {
|
|||||||
echo " New package (version: $pkgbuild_version)"
|
echo " New package (version: $pkgbuild_version)"
|
||||||
fi
|
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
|
if [[ -d "keys/pgp" ]]; then
|
||||||
echo " Importing package-specific PGP keys..."
|
echo " Importing package-specific PGP keys..."
|
||||||
for keyfile in keys/pgp/*.asc; do
|
for keyfile in keys/pgp/*.asc; do
|
||||||
|
|||||||
@@ -58,7 +58,6 @@ source=(
|
|||||||
"LICENSE-$pkgver::https://raw.githubusercontent.com/peteonrails/voxtype/v$pkgver/LICENSE"
|
"LICENSE-$pkgver::https://raw.githubusercontent.com/peteonrails/voxtype/v$pkgver/LICENSE"
|
||||||
"README-$pkgver.md::https://raw.githubusercontent.com/peteonrails/voxtype/v$pkgver/README.md"
|
"README-$pkgver.md::https://raw.githubusercontent.com/peteonrails/voxtype/v$pkgver/README.md"
|
||||||
)
|
)
|
||||||
validpgpkeys=('7DA2709247D75BC6')
|
|
||||||
sha256sums=(
|
sha256sums=(
|
||||||
# Whisper binaries
|
# Whisper binaries
|
||||||
'505933791bb9389ef851813c404eefe63b186eba3aa842b2b321a164ecb8a6db' # voxtype-avx2
|
'505933791bb9389ef851813c404eefe63b186eba3aa842b2b321a164ecb8a6db' # voxtype-avx2
|
||||||
|
|||||||
Reference in new issue
Block a user