PKGBUILD 911 B

12345678910111213141516171819202122232425262728
  1. # Maintainer: Nathaniel van Diepen <[email protected]>
  2. pkgname=eeems-keyring
  3. # Generate a new version with date +"%Y%m%d"
  4. pkgver=20210426
  5. pkgrel=1
  6. pkgdesc='Eeems PGP keyring'
  7. arch=(any)
  8. url='https://eeems.codes/Eeems/eeems-keyring'
  9. license=(MIT)
  10. install=$pkgname.install
  11. source=("$pkgname.install" "LICENSE")
  12. sha256sums=("SKIP" "SKIP")
  13. validpgpkeys=('A64228CCD26972801C2CE6E3EC931EA46980BA1B') # Nathaniel van Diepen <[email protected]>
  14. package() {
  15. # Create directories
  16. mkdir -p "$pkgdir/usr/share/pacman/keyrings/";
  17. mkdir -p "$pkgdir/usr/share/licenses/eeems-keyring";
  18. # Create keyring files
  19. cd "$pkgdir/usr/share/pacman/keyrings";
  20. echo "A64228CCD26972801C2CE6E3EC931EA46980BA1B:4" > eeems-trusted;
  21. touch eeems-revoked;
  22. gpg --armor --export A64228CCD26972801C2CE6E3EC931EA46980BA1B > eeems.gpg;
  23. # Copy license file
  24. cd $srcdir;
  25. cp LICENSE "$pkgdir/usr/share/licenses/eeems-keyring/";
  26. }