Add kira-linux-keyring.install script so pacman keyring get updated on kira keyring package update

This commit is contained in:
kira committed 2026-11-19 16:42:09 +01:00
1 parent c402f564cf
commit d7a8304fc4
2 files changed
+17 -1

No files matched your search

+2 -1
View File
@@ -1,6 +1,6 @@
pkgname=kira-linux-keyring
pkgver=1.2026.1109
pkgrel=1
pkgrel=2
pkgdesc='Kira Linux keyring'
arch=('any')
url='https://dev.kira-linux.org/kira-linux-packages/kira-keyring'
@@ -15,6 +15,7 @@ sha512sums=('0153121d042e564c0603ec43a9701baa3970fbc1df6f27e7450822379f4dce5b1a8
'a08eae3e588c87d84ff8d0f1df521ddccb37d0b1c738b81a2899775e3f51cf12819bf57772c9d4eeff07ba15df330964b5dfb0d54da7f6b7aa08e022fa2931c2'
'cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e')
install="${pkgname}.install"
package() {
# Create the keyrings directory if it doesn't exist
+15
View File
@@ -0,0 +1,15 @@
post_upgrade() {
if usr/bin/pacman-key -l >/dev/null 2>&1; then
usr/bin/pacman-key --populate kira-linux
usr/bin/pacman-key --updatedb
else
echo " >>> Run \`pacman-key --init\` to set up your pacman keyring."
echo " >>> Then run \`pacman-key --populate kira-linux\` to install the EndeavourOS keyring."
fi
}
post_install() {
if [ -x usr/bin/pacman-key ]; then
post_upgrade
fi
}