# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=pinentry pkgver=1.2.1 pkgrel=0 pkgdesc="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol" url="https://www.gnupg.org/aegypten2/" arch="all" license="GPL-2.0-or-later" install=" $pkgname.post-install $pkgname.post-upgrade $pkgname-curses-ss.post-install $pkgname-curses-ss.post-deinstall " makedepends="ncurses-dev libcap-dev libgpg-error-dev libassuan-dev gcr-dev libsecret-dev" subpackages="$pkgname-doc $pkgname-tty $pkgname-curses-ss:_curses_ss" source="https://gnupg.org/ftp/gcrypt/pinentry/pinentry-$pkgver.tar.bz2" prepare() { default_prepare cp -ar "$builddir" "$builddir-libsecret" } build() { _build \ --disable-libsecret \ --enable-pinentry-curses \ --enable-pinentry-tty cd "$builddir-libsecret" _build \ --enable-libsecret \ --enable-pinentry-curses \ --disable-pinentry-tty } _build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-pinentry-gtk2 \ --disable-pinentry-gnome3 \ --disable-pinentry-qt \ --enable-fallback-curses \ "$@" make } check() { make check } package() { make -C "$builddir" DESTDIR="$pkgdir" install # created by post install scripts so we can override with other UI versions rm -f "$pkgdir"/usr/bin/pinentry } _curses_ss() { pkgdesc="Curses-based PIN or pass-phrase entry dialog for GnuPG with Secret Service support" install -D -m 755 "$builddir-libsecret"/curses/pinentry-curses \ "$subpkgdir"/usr/bin/pinentry-curses-ss } tty() { pkgdesc="Minimal dumb-terminal PIN or pass-phrase entry dialog for GnuPG" amove usr/bin/pinentry-tty } sha512sums=" a665315628f4dcf07e16a22db3f3be15d7e7e93b3deec0546c7275b71b0e3bd65535a08af5e12d6339fd6595132df86529401d9d12bd17c428a3466e8dfafab6 pinentry-1.2.1.tar.bz2 "