add keyring

This commit is contained in:
Kuoi 2022-04-16 16:19:21 +01:00
parent 10aa8af905
commit b258694033
3 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,21 @@
# Maintainer: Guoyi
pkgname=bioarchlinux-keyring
pkgver=20220416
pkgrel=1
pkgdesc='BioArchLinux PGP keyring'
arch=('any')
url='https://github.com/BioArchLinux/keyring'
install=${pkgname}.install
makedepends=('git')
license=('GPL')
source=('git+https://github.com/BioArchLinux/keyring.git')
sha256sums=('SKIP')
pkgver(){
date +%Y%m%d
}
package() {
cd "${srcdir}"/keyring
install -Dm644 bioarchlinux.gpg $pkgdir/usr/share/pacman/keyrings/bioarchlinux.gpg
install -Dm644 bioarchlinux-revoked $pkgdir/usr/share/pacman/keyrings/bioarchlinux-revoked
install -Dm644 bioarchlinux-trusted $pkgdir/usr/share/pacman/keyrings/bioarchlinux-trusted
}

View file

@ -0,0 +1,9 @@
post_upgrade() {
usr/bin/pacman-key -l B1F96021DB62254D || usr/bin/pacman-key --populate bioarchlinux
}
post_install() {
if [ -x usr/bin/pacman-key ]; then
post_upgrade
fi
}

View file

@ -0,0 +1,13 @@
# Maintainer: guoyi
build_prefix: extra-x86_64
maintainers:
- github: stasareintherose
email: stasareintherose@outlook.com
pre_build_script: |
update_pkgrel()
vcs_update()
post_build_script: |
git_pkgbuild_commit()
update_on:
- source: github
github: BioArchLinux/keyring