# 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=2021.03.26
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.gz")
sha512sums=('04a76e2bfa88fb428face9e01976ff98a3a26fe2b555340c14200fc6099ee3b474a6733486cedfe933933c0a6826ee3550660499d7b26bda8a27a620b1d6a35f')

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