# Maintainer: André Silva <emulatorman@hyperbola.info>

pkgname=hyperbola-archlinux-keyring
_pkgname=arch-keyring
pkgver=20191112
pkgrel=1
pkgdesc="Hyperbola's Arch PGP keyring"
arch=('any')
url='https://git.hyperbola.info:50100/services/arch-keyring.git/'
license=('CC0-1.0')

source=("https://repo.hyperbola.info:50000/sources/$_pkgname/$_pkgname-$pkgver.tar.gz"{,.sig})
validpgpkeys=('C92BAA713B8D53D3CAE63FC9E6974752F9704456') # André Silva

package() {
	cd "$srcdir/$_pkgname-$pkgver"

	install -dm755 ${pkgdir}/usr/share/pacman/keyrings/
	install -dm755 ${pkgdir}/usr/share/licenses/$pkgname/

	install -m0644 arch.gpg      ${pkgdir}/usr/share/pacman/keyrings/hyperbola-archlinux.gpg
	install -m0644 arch-trusted  ${pkgdir}/usr/share/pacman/keyrings/hyperbola-archlinux-trusted.gpg
	install -m0644 arch-revoked  ${pkgdir}/usr/share/pacman/keyrings/hyperbola-archlinux-revoked.gpg
	install -m0644 legalcode.txt ${pkgdir}/usr/share/licenses/$pkgname/
}
sha512sums=('3f3871b214956e736eba60cf2e079b4c89faa3d0460de63080eacb3d12795ed6ed4265d82a1ecbf7f40dd2e1e8eba09894005dfbc736baf842d35bdef9adeead'
            'SKIP')
