diff options
author | Jingbei Li | 2020-08-05 20:44:29 +0800 |
---|---|---|
committer | Jingbei Li | 2020-08-05 20:44:29 +0800 |
commit | 3a61b8e01ee89957701a001400525e66251a4a95 (patch) | |
tree | 0fb59c4600df9dbe4b3acc9cc19efde963794361 | |
download | aur-arch4edu-keyring.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 22 | ||||
-rw-r--r-- | arch4edu-keyring.install | 9 |
4 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5ad11b62579c --- /dev/null +++ b/.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/.gitignore b/.gitignore new file mode 100644 index 000000000000..4950c1eb8c87 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*/ +*.tar* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a8a5daffaad1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Jingbei Li <i@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.install b/arch4edu-keyring.install new file mode 100644 index 000000000000..f5158dc77d65 --- /dev/null +++ b/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 +} |