diff --git a/PKGBUILD b/PKGBUILD index 25becec..ddfc6b0 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -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 diff --git a/kira-linux-keyring.install b/kira-linux-keyring.install new file mode 100644 index 0000000..bf6c1be --- /dev/null +++ b/kira-linux-keyring.install @@ -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 +}