template.py 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. pkgname = "pinentry"
  2. pkgver = "1.2.1"
  3. pkgrel = 0
  4. build_style = "gnu_configure"
  5. configure_args= ["--enable-pinentry-tty", "--enable-pinentry-curses", "--enable-pinentry-gnome3", "--enable-fallback-curses", "--enable-libsecret"]
  6. make_install_env = {
  7. "PINENTRY_DEFAULT": "pinentry-curses"
  8. }
  9. hostmakedepends = ["pkgconf"]
  10. makedepends= ["ncurses-devel", "libassuan-devel", "libgpg-error-devel", "gcr-devel", "libsecret-devel"]
  11. pkgdesc = "PIN or passphrase entry dialogs for GnuPG"
  12. maintainer = "eater <=@eater.me>"
  13. license = "GPL-2.0-or-later"
  14. url = "https://www.gnupg.org/related_software/pinentry/index.html"
  15. source = f"https://gnupg.org/ftp/gcrypt/{pkgname}/{pkgname}-{pkgver}.tar.bz2"
  16. sha256 = "457a185e5a85238fb945a955dc6352ab962dc8b48720b62fc9fa48c7540a4067"
  17. def post_install(self):
  18. # pinentry tries to default to gnome3, which is not desired
  19. # so wipe the symlink and use curses instead
  20. self.rm(self.destdir / "usr/bin/pinentry")
  21. self.install_link("pinentry-curses", "usr/bin/pinentry")
  22. @subpackage("pinentry-tty")
  23. def _tty(self):
  24. return ["usr/bin/pinentry-tty"]
  25. @subpackage("pinentry-gnome3")
  26. def _gnome3(self):
  27. return ["usr/bin/pinentry-gnome3"]