# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andre Vaillancourt <g.andre.vaillancourt@gmail.com>
# Contributor: Thomas Weischuh <thomas t-8ch de>

pkgname=ubuntu-keyring
pkgver=2023.11.28.1
pkgrel=1
pkgdesc="GnuPG keys of the Ubuntu archive"
arch=('any')
url="https://mirrors.kernel.org/ubuntu/pool/main/u/ubuntu-keyring"
license=('GPL')
depends=('gnupg')
source=("https://mirrors.kernel.org/ubuntu/pool/main/u/ubuntu-keyring/ubuntu-keyring_$pkgver.tar.xz")
sha512sums=('b17824a91d6e25c5658eae8d9ae509a4158b406768d5d4a8e117a230226ab7cd4327cf7e5b9bbb7baae7c66f3807d27926de85a1ea5c11a82684a890aeb8fd18')

package() {
  cd $pkgname
  install -Dm644 keyrings/*-{keyring,keys}.gpg -t "$pkgdir"/usr/share/keyrings/
  install -Dm644 keyrings/ubuntu-keyring-*.gpg -t "$pkgdir"/etc/apt/trusted.gpg.d/
}
