summaryrefslogtreecommitdiff
path: root/archlinuxewe-keyring
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-01-01 11:45:12 +0100
committerErich Eckner <git@eckner.net>2022-01-01 11:45:12 +0100
commit754ac9638a4af36c963a4b31f6be58d4ca65469b (patch)
treeedf22baa163c7d2c8d75c0f480e11f07f2a7aaf9 /archlinuxewe-keyring
parent6278b58b4cbcaf9ff406ce53a130b575fd9e9c0d (diff)
downloadarchlinuxewe-754ac9638a4af36c963a4b31f6be58d4ca65469b.tar.xz
archlinuxewe-keyring neu
Diffstat (limited to 'archlinuxewe-keyring')
-rw-r--r--archlinuxewe-keyring/PKGBUILD19
-rw-r--r--archlinuxewe-keyring/archlinuxewe-keyring.install12
2 files changed, 31 insertions, 0 deletions
diff --git a/archlinuxewe-keyring/PKGBUILD b/archlinuxewe-keyring/PKGBUILD
new file mode 100644
index 000000000..65ddfc3a3
--- /dev/null
+++ b/archlinuxewe-keyring/PKGBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+
+pkgname=archlinuxewe-keyring
+pkgver=20220101
+pkgrel=1
+pkgdesc='PGP keyring for [archlinuxewe]'
+arch=(any)
+url='https://git.eckner.net/Erich/archlinuxewe-keyring'
+license=(GPL)
+install=$pkgname.install
+source=("https://arch.eckner.net/archlinuxewe-keyring-${pkgver}.tar.gz"{,.sig})
+sha512sums=('974e9ce7f4563871dc09d398a0a8fe3c3fc9c7890646e1eca3628c272eeecfdd1b05843592b9c170d3269b5e8ff28cbf9a17dba03c9d7e40e854c9bcad0daa5c'
+ 'SKIP')
+validpgpkeys=(DE9F7688CACF04FEB81A6C590AEEC90755DA7B5A)
+
+package() {
+ cd $pkgname-$pkgver
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+}
diff --git a/archlinuxewe-keyring/archlinuxewe-keyring.install b/archlinuxewe-keyring/archlinuxewe-keyring.install
new file mode 100644
index 000000000..6f826b95b
--- /dev/null
+++ b/archlinuxewe-keyring/archlinuxewe-keyring.install
@@ -0,0 +1,12 @@
+post_upgrade() {
+ if usr/bin/pacman-key -l >/dev/null 2>&1; then
+ usr/bin/pacman-key --populate archlinuxewe
+ usr/bin/pacman-key --updatedb
+ fi
+}
+
+post_install() {
+ if [ -x usr/bin/pacman-key ]; then
+ post_upgrade
+ fi
+}