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.

84 lines
2.7 KiB

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