PKGBUILD 879 B

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