diff options
author | maintainer | 2016-10-01 00:37:40 +0200 |
---|---|---|
committer | maintainer | 2016-10-01 00:37:40 +0200 |
commit | 0898a615071f644a4f97b04ce9fe2a87dcb432c8 (patch) | |
tree | 06a9ff3465b8d9d5bceaa062c24e17782b2ed5e5 /PKGBUILD | |
download | aur-0898a615071f644a4f97b04ce9fe2a87dcb432c8.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0fed2e532a1f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +pkgname=distribution-gpg-keys +_pkgver=1.7 +_rpmrel=1 +pkgver=$_pkgver.$_rpmrel +pkgrel=1 +pkgdesc="GPG keys used by various Linux distributions to sign packages" +arch=('any') +url="https://github.com/xsuchy/$pkgname" +license=('CC0') +source=("$url/archive/$pkgname-$_pkgver-$_rpmrel.tar.gz") +md5sums=('a27d40c00c2053dd6caf0a0af7405fe4') + +# Set to 1 to include GPG keys used by Copr projects +_with_copr=0 + +prepare() { + mv "$pkgname-$pkgname-$_pkgver-$_rpmrel" "$pkgname-$pkgver" +} + +package() { + cd "$pkgname-$pkgver" + + # Do not include GPG keys used by Copr projects by default + ((_with_copr)) || rm -r keys/copr + + mkdir -p "$pkgdir/usr/share/$pkgname" + cp -a keys/* "$pkgdir/usr/share/$pkgname" + + # Do not forget license and documentation files + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" + install -Dm644 SOURCES.md "$pkgdir/usr/share/doc/$pkgname/SOURCES.md" +} + +# vim: set ft=sh ts=4 sw=4 noet: |