PKGBUILD 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # Maintainer: Nathaniel van Diepen <[email protected]>
  2. pkgname=eeems-keyring
  3. # Generate a new version with date +"%Y%m%d"
  4. pkgver=20240520
  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=(
  14. 'A64228CCD26972801C2CE6E3EC931EA46980BA1B' # Nathaniel van Diepen <[email protected]>
  15. 'DFB0234711A7B1176B00261F87F4F19E784573DA' # Nathaniel van Diepen <[email protected]>
  16. )
  17. package() {
  18. # Create directories
  19. mkdir -p "$pkgdir/usr/share/pacman/keyrings/";
  20. mkdir -p "$pkgdir/usr/share/licenses/eeems-keyring";
  21. # Create keyring files
  22. cd "$pkgdir/usr/share/pacman/keyrings";
  23. echo "A64228CCD26972801C2CE6E3EC931EA46980BA1B:4:" > eeems-trusted;
  24. echo "DFB0234711A7B1176B00261F87F4F19E784573DA:4:" >> eeems-trusted;
  25. touch eeems-revoked;
  26. gpg --armor --export A64228CCD26972801C2CE6E3EC931EA46980BA1B > eeems.gpg;
  27. gpg --armor --export DFB0234711A7B1176B00261F87F4F19E784573DA > eeems.gpg;
  28. # Copy license file
  29. cd $srcdir;
  30. cp LICENSE "$pkgdir/usr/share/licenses/eeems-keyring/";
  31. }