summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archlinuxarm-keyring/PKGBUILD21
-rw-r--r--archlinuxarm-keyring/archlinuxarm-keyring.install11
2 files changed, 32 insertions, 0 deletions
diff --git a/archlinuxarm-keyring/PKGBUILD b/archlinuxarm-keyring/PKGBUILD
new file mode 100644
index 000000000..36b21a16e
--- /dev/null
+++ b/archlinuxarm-keyring/PKGBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Kevin Mihelich <kevin@archlinuxarm.org>
+
+pkgname=archlinuxarm-keyring
+pkgver=20140119
+pkgrel=1
+pkgdesc='Arch Linux ARM PGP keyring'
+arch=('any')
+url='http://archlinuxarm.org'
+license=('GPL')
+install="${pkgname}.install"
+source=("http://archlinuxarm.org/builder/src/${pkgname}-${pkgver}.tar.gz"
+ "http://archlinuxarm.org/builder/src/${pkgname}-${pkgver}.tar.gz.sig")
+sha512sums=('8fbd66dcc8db08ebebeff9c08782726ebcb931710f6fd4c26292d34ae0683b0e0e8940f7e32ce54a7075f1b65e45ebf13f06efa866484be9b4f6ccd777ff0b9f'
+ 'SKIP')
+validpgpkeys=('68B3537F39A313B3E574D06777193F152BDBE6A6')
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make PREFIX=/usr DESTDIR=${pkgdir} install
+}
diff --git a/archlinuxarm-keyring/archlinuxarm-keyring.install b/archlinuxarm-keyring/archlinuxarm-keyring.install
new file mode 100644
index 000000000..8304dd82e
--- /dev/null
+++ b/archlinuxarm-keyring/archlinuxarm-keyring.install
@@ -0,0 +1,11 @@
+post_upgrade() {
+ if usr/bin/pacman-key -l >/dev/null 2>&1; then
+ usr/bin/pacman-key --populate archlinuxarm
+ fi
+}
+
+post_install() {
+ if [ -x usr/bin/pacman-key ]; then
+ post_upgrade
+ fi
+}