diff --git a/arch4edu-keyring/.SRCINFO b/arch4edu-keyring/.SRCINFO new file mode 100644 index 0000000..5ad11b6 --- /dev/null +++ b/arch4edu-keyring/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = arch4edu-keyring + pkgdesc = arch4edu PGP keyring + pkgver = 20200805 + pkgrel = 1 + url = https://github.com/arch4edu/keyring + install = arch4edu-keyring.install + arch = any + license = GPL + optdepends = pkgstats: install to submit package usage statistics + source = https://github.com/arch4edu/keyring/archive/20200805.tar.gz + sha512sums = 4e0482cbba53a509976f769bbe2a9715fefa7c6362439715a576b084bf8b2dd3c58e21066af786616c12b9ff47c508adf18cf55522f8c452a33195910a04ce1a + +pkgname = arch4edu-keyring + diff --git a/arch4edu-keyring/.gitignore b/arch4edu-keyring/.gitignore new file mode 100644 index 0000000..4950c1e --- /dev/null +++ b/arch4edu-keyring/.gitignore @@ -0,0 +1,2 @@ +*/ +*.tar* diff --git a/arch4edu-keyring/.gitrepo b/arch4edu-keyring/.gitrepo new file mode 100644 index 0000000..2506e09 --- /dev/null +++ b/arch4edu-keyring/.gitrepo @@ -0,0 +1,12 @@ +; DO NOT EDIT (unless you know what you are doing) +; +; This subdirectory is a git "subrepo", and this file is maintained by the +; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme +; +[subrepo] + remote = https://aur.archlinux.org/arch4edu-keyring + branch = master + commit = 3a61b8e01ee89957701a001400525e66251a4a95 + parent = ca32ced5175cea053c54e222648d33d05ac7795d + method = merge + cmdver = 0.4.3 diff --git a/arch4edu-keyring/PKGBUILD b/arch4edu-keyring/PKGBUILD new file mode 100644 index 0000000..a8a5daf --- /dev/null +++ b/arch4edu-keyring/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Jingbei Li + +pkgname=arch4edu-keyring +pkgver=20200805 +pkgrel=1 +pkgdesc='arch4edu PGP keyring' +arch=('any') +url='https://github.com/arch4edu/keyring' +license=('GPL') +optdepends=('pkgstats: install to submit package usage statistics') +source=("$url/archive/$pkgver.tar.gz") +install=${pkgname}.install +sha512sums=('4e0482cbba53a509976f769bbe2a9715fefa7c6362439715a576b084bf8b2dd3c58e21066af786616c12b9ff47c508adf18cf55522f8c452a33195910a04ce1a') + +package() { + cd "$srcdir/keyring-$pkgver" + + install -Dm644 arch4edu.gpg $pkgdir/usr/share/pacman/keyrings/arch4edu.gpg + install -Dm644 arch4edu-revoked $pkgdir/usr/share/pacman/keyrings/arch4edu-revoked + install -Dm644 arch4edu-trusted $pkgdir/usr/share/pacman/keyrings/arch4edu-trusted +} + diff --git a/arch4edu-keyring/arch4edu-keyring.install b/arch4edu-keyring/arch4edu-keyring.install new file mode 100644 index 0000000..f5158dc --- /dev/null +++ b/arch4edu-keyring/arch4edu-keyring.install @@ -0,0 +1,9 @@ +post_upgrade() { + usr/bin/pacman-key -l 7931B6D628C8D3BA || usr/bin/pacman-key --populate arch4edu +} + +post_install() { + if [ -x usr/bin/pacman-key ]; then + post_upgrade + fi +}