GnuPG with scdaemon_shared-access patch applied
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

85 lines
2.6 KiB

  1. # Maintainer: Arti Zirk <arti.zirk@gmail.com>
  2. # Contributor: Gaetan Bisson <bisson@archlinux.org>
  3. # Contributor: Tobias Powalowski <tpowa@archlinux.org>
  4. # Contributor: Andreas Radke <andyrtr@archlinux.org>
  5. # Contributor: Judd Vinet <jvinet@zeroflux.org>
  6. _pkgname=gnupg
  7. pkgname=gnupg-scdaemon-shared-access
  8. pkgver=2.2.23
  9. pkgrel=1
  10. pkgdesc='This package adds shared-access option that uses PCSC_SHARE_SHARED for pcsc_connect in scdaemon when using pcsc backend for smartcard access'
  11. url='https://www.gnupg.org/'
  12. license=('GPL')
  13. arch=('x86_64')
  14. checkdepends=('openssh')
  15. makedepends=('libldap' 'libusb-compat' 'pcsclite')
  16. depends=('npth' 'libgpg-error' 'libgcrypt' 'libksba' 'libassuan'
  17. 'pinentry' 'bzip2' 'readline' 'gnutls' 'sqlite')
  18. optdepends=('libldap: gpg2keys_ldap'
  19. 'libusb-compat: scdaemon'
  20. 'pcsclite: scdaemon')
  21. validpgpkeys=('D8692123C4065DEA5E0F3AB5249B39D24F25E3B6'
  22. '46CC730865BB5C78EBABADCF04376F3EE0856959'
  23. '5B80C5754298F0CB55D8ED6ABCEF7E294B092E28'
  24. '6DAA6E64A76D2840571B4902528897B826403ADA')
  25. source=("https://gnupg.org/ftp/gcrypt/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2"{,.sig}
  26. 'drop-import-clean.patch'
  27. 'avoid-beta-warning.patch'
  28. 'do-not-rebuild-defsincdate.patch'
  29. "scdaemon_shared-access.patch")
  30. sha256sums=('10b55e49d78b3e49f1edb58d7541ecbdad92ddaeeb885b6f486ed23d1cd1da5c'
  31. 'SKIP'
  32. '02d375f0045f56f7dd82bacdb5ce559afd52ded8b75f6b2673c39ec666e81abc'
  33. '22fdf9490fad477f225e731c417867d9e7571ac654944e8be63a1fbaccd5c62d'
  34. 'bb4dcba0328af6271ccfe992a64d8daa9f0a691ba52978491647f1dea05675ee'
  35. 'aa46b372830dd8ed355a86a1677c50c6be8178f847c09b7291f47a1dc3ea02dc')
  36. install=install
  37. conflicts=('gnupg' 'dirmngr' 'gnupg2')
  38. provides=('gnupg' 'dirmngr' "gnupg=${pkgver}" "gnupg2=${pkgver}")
  39. prepare() {
  40. cd "${srcdir}/${_pkgname}-${pkgver}"
  41. patch -p1 -i ../scdaemon_shared-access.patch
  42. patch -p1 -i ../avoid-beta-warning.patch
  43. patch -p1 -i ../drop-import-clean.patch
  44. # improve reproducibility
  45. patch -p1 -i ../do-not-rebuild-defsincdate.patch
  46. rm doc/gnupg.info*
  47. ./autogen.sh
  48. }
  49. build() {
  50. cd "${srcdir}/${_pkgname}-${pkgver}"
  51. ./configure \
  52. --prefix=/usr \
  53. --sysconfdir=/etc \
  54. --sbindir=/usr/bin \
  55. --libexecdir=/usr/lib/gnupg \
  56. --enable-maintainer-mode \
  57. --enable-symcryptrun \
  58. make
  59. }
  60. check() {
  61. cd "${srcdir}/${_pkgname}-${pkgver}"
  62. make check
  63. }
  64. package() {
  65. cd "${srcdir}/${_pkgname}-${pkgver}"
  66. make DESTDIR="${pkgdir}" install
  67. ln -s gpg "${pkgdir}"/usr/bin/gpg2
  68. ln -s gpgv "${pkgdir}"/usr/bin/gpgv2
  69. cd doc/examples/systemd-user
  70. for i in *.*; do
  71. install -Dm644 "$i" "${pkgdir}/usr/lib/systemd/user/$i"
  72. done
  73. }