PKGBUILD 895 B

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