Name pinentry
Description Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol
Version 1.3.2-2
Package Base pinentry
Homepage https://gnupg.org/related_software/pinentry/
Maintainers ['Levente Polyak <anthraxx[at]archlinux[dot]org>', 'Lukas Fleischer <lfleischer@archlinux.org>']
Contributors ['Gaetan Bisson <bisson@archlinux.org>', 'Tobias Powalowski <tpowa@archlinux.org>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/pinentry
Sources ['https://www.gnupg.org/ftp/gcrypt/pinentry/pinentry-1.3.2.tar.bz2', 'https://www.gnupg.org/ftp/gcrypt/pinentry/pinentry-1.3.2.tar.bz2.sig', 'pinentry']
Dependencies ['glib2', 'glibc', 'libassuan', 'libglib-2.0.so', 'libncursesw.so', 'libsecret', 'libsecret-1.so', 'ncurses']
Optional-Dependencies ['gcr', 'gtk3', 'kguiaddons', 'kwayland5', 'kwindowsystem', 'qt5-x11extras']
Build-Dependencies ['qt6-base', 'gtk2-compat', 'gcr', 'kguiaddons', 'kwindowsystem']
Provides []
Builddate 19-08-2025 14:43:36
Architecture x86_64
Distro-Version
Licenses ['GPL']
Hash 0b5fe2bc694ba9490689a6a45e5482f791879d531e2ac335fecc4f4166c3529e
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Gaetan Bisson <bisson@archlinux.org>

pkgname=pinentry
pkgver=1.3.2
pkgrel=2
pkgdesc='Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol'
url='https://gnupg.org/related_software/pinentry/'
arch=('x86_64')
license=('GPL')
depends=(
  'glibc' 'ncurses' 'libassuan' 'libsecret' 'glib2'
)
makedepends=('qt6-base' 'gtk2-compat' 'gcr' 'kguiaddons' 'kwindowsystem')
optdepends=(
  'gcr: GNOME backend'
  'gtk3: GTK backend'
  'kguiaddons: Qt6 backend'
  'kwindowsystem: Qt6 backend'
)
source=("https://www.gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2"{,.sig}
        'pinentry')
sha256sums=('8e986ed88561b4da6e9efe0c54fa4ca8923035c99264df0b0464497c5fb94e9e'
            'SKIP'
            'b902d07c061e0cf6d661014516172f7a35f477362edb779f863935733d1c4dde')
validpgpkeys=(
  'D8692123C4065DEA5E0F3AB5249B39D24F25E3B6' # Werner Koch (dist sig)
  '6DAA6E64A76D2840571B4902528897B826403ADA' # Werner Koch (dist signing 2020)
  'AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD' # Niibe Yutaka (GnuPG Release Key)
)

build() {
  cd "${pkgname}-${pkgver}"
  ./configure \
    --prefix=/usr \
    --enable-pinentry-tty \
    --enable-pinentry-curses \
    --enable-fallback-curses \
    --enable-pinentry-emacs \
    --enable-pinentry-gnome3 \
    --enable-pinentry-qt \
    --enable-libsecret

  make
}

package() {
  depends+=(
    libglib-2.0.so
    libncursesw.so
    libsecret-1.so
  )

  cd "${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
  install -Dm 755 ../pinentry -t "${pkgdir}/usr/bin"

  # The -gtk backend has been built to be used with GTK3.
  mv "${pkgdir}/usr/bin/pinentry-gtk"{-2,}
}

# vim: ts=2 sw=2 et: