* update pinentry to 1.3.1-2

This commit is contained in:
Alexander Baldeck 2024-09-11 18:03:23 +02:00
parent 85dd435c7d
commit 8153bb40e7
4 changed files with 87 additions and 27 deletions

41
pinentry/.SRCINFO Normal file
View File

@ -0,0 +1,41 @@
pkgbase = pinentry
pkgdesc = Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol
pkgver = 1.3.1
pkgrel = 2
url = https://gnupg.org/related_software/pinentry/
arch = x86_64
license = GPL
makedepends = qt6-base
makedepends = qt5-x11extras
makedepends = kwayland5
makedepends = gtk2-compat
makedepends = gcr
makedepends = kguiaddons
makedepends = kwindowsystem
depends = glibc
depends = ncurses
depends = libassuan
depends = libsecret
depends = glib2
depends = libsecret-1.so
depends = libncursesw.so
depends = libassuan.so
depends = libglib-2.0.so
optdepends = gcr: GNOME backend
optdepends = gtk3: GTK backend
optdepends = qt5-x11extras: Qt5 backend
optdepends = kwayland5: Qt5 backend
optdepends = kguiaddons: Qt6 backend
optdepends = kwindowsystem: Qt6 backend
backup = etc/pinentry/preexec
source = https://www.gnupg.org/ftp/gcrypt/pinentry/pinentry-1.3.1.tar.bz2
source = https://www.gnupg.org/ftp/gcrypt/pinentry/pinentry-1.3.1.tar.bz2.sig
source = pinentry
validpgpkeys = D8692123C4065DEA5E0F3AB5249B39D24F25E3B6
validpgpkeys = 6DAA6E64A76D2840571B4902528897B826403ADA
validpgpkeys = AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD
sha256sums = bc72ee27c7239007ab1896c3c2fae53b076e2c9bd2483dc2769a16902bce8c04
sha256sums = SKIP
sha256sums = 2f961cccf9aebddf9c0823a96809a10296d7af6516460ae2d93e8ea5a433166d
pkgname = pinentry

5
pinentry/.nvchecker.toml Normal file
View File

@ -0,0 +1,5 @@
[pinentry]
source = "regex"
url = "https://www.gnupg.org/ftp/gcrypt/pinentry/"
regex = "pinentry-([^\"]*)\\.tar"
exclude_regex = ".*diff.*"

View File

@ -4,8 +4,8 @@
# Contributor: Gaetan Bisson <bisson@archlinux.org> # Contributor: Gaetan Bisson <bisson@archlinux.org>
pkgname=pinentry pkgname=pinentry
pkgver=1.3.0 pkgver=1.3.1
pkgrel=1 pkgrel=2
pkgdesc='Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol' pkgdesc='Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol'
url='https://gnupg.org/related_software/pinentry/' url='https://gnupg.org/related_software/pinentry/'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64) arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
@ -13,21 +13,20 @@ license=('GPL')
depends=( depends=(
'glibc' 'ncurses' 'libassuan' 'libsecret' 'glib2' 'glibc' 'ncurses' 'libassuan' 'libsecret' 'glib2'
libsecret-1.so libncursesw.so libassuan.so libglib-2.0.so) libsecret-1.so libncursesw.so libassuan.so libglib-2.0.so)
makedepends=('gtk2' 'qt6-base' 'qt5-x11extras' 'kwayland5' 'gcr') makedepends=('qt6-base' 'qt5-x11extras' 'kwayland5' 'gtk2-compat' 'gcr' 'kguiaddons' 'kwindowsystem')
optdepends=( optdepends=(
'gtk2: gtk2 backend' 'gcr: GNOME backend'
'qt5-x11extras: qt backend' 'gtk3: GTK backend'
'kwayland5: qt backend' 'qt5-x11extras: Qt5 backend'
'gcr: gnome3 backend' 'kwayland5: Qt5 backend'
'kguiaddons: Qt6 backend'
'kwindowsystem: Qt6 backend'
) )
backup=('etc/pinentry/preexec')
source=("https://www.gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2"{,.sig} source=("https://www.gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2"{,.sig}
'pinentry' 'pinentry')
'preexec') sha256sums=('bc72ee27c7239007ab1896c3c2fae53b076e2c9bd2483dc2769a16902bce8c04'
sha256sums=('9b3cd5226e7597f2fded399a3bc659923351536559e9db0826981bca316494de'
'SKIP' 'SKIP'
'af7c27139b20a7f1b9a227f3663abb21bb2b954523352b7844da27db1b0c1c86' '2f961cccf9aebddf9c0823a96809a10296d7af6516460ae2d93e8ea5a433166d')
'f428f08d77f1f7830eadb8435af282a833fc13d8b623b122eefd9d3b628bef90')
validpgpkeys=( validpgpkeys=(
'D8692123C4065DEA5E0F3AB5249B39D24F25E3B6' # Werner Koch (dist sig) 'D8692123C4065DEA5E0F3AB5249B39D24F25E3B6' # Werner Koch (dist sig)
'6DAA6E64A76D2840571B4902528897B826403ADA' # Werner Koch (dist signing 2020) '6DAA6E64A76D2840571B4902528897B826403ADA' # Werner Koch (dist signing 2020)
@ -42,20 +41,21 @@ build() {
--enable-pinentry-curses \ --enable-pinentry-curses \
--enable-fallback-curses \ --enable-fallback-curses \
--enable-pinentry-emacs \ --enable-pinentry-emacs \
--enable-pinentry-gtk2 \
--enable-pinentry-gnome3 \ --enable-pinentry-gnome3 \
--enable-pinentry-qt \ --enable-pinentry-qt \
--enable-libsecret \ --enable-libsecret
make make
} }
package() { package() {
cd "${pkgname}-${pkgver}" cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
make DESTDIR="${pkgdir}" install
install -Dm 755 ../pinentry -t "${pkgdir}/usr/bin" install -Dm 755 ../pinentry -t "${pkgdir}/usr/bin"
install -Dm 755 ../preexec -t "${pkgdir}/etc/pinentry"
# The -gtk backend has been built to be used with GTK3.
mv "${pkgdir}/usr/bin/pinentry-gtk"{-2,}
} }
# vim: ts=2 sw=2 et: # vim: ts=2 sw=2 et:

View File

@ -1,14 +1,28 @@
#!/bin/sh #!/bin/bash
# user-defined pre-exec hook # Run user-defined and site-defined pre-exec hooks.
test -r "${XDG_CONFIG_HOME:-$HOME/.config}"/pinentry/preexec && [[ -r "${XDG_CONFIG_HOME:-$HOME/.config}"/pinentry/preexec ]] && \
. "${XDG_CONFIG_HOME:-$HOME/.config}"/pinentry/preexec . "${XDG_CONFIG_HOME:-$HOME/.config}"/pinentry/preexec
[[ -r /etc/pinentry/preexec ]] && . /etc/pinentry/preexec
# site-defined pre-exec hook # Guess preferred backend based on environment.
test -r /etc/pinentry/preexec && backends=(curses tty)
. /etc/pinentry/preexec if [[ -n "$DISPLAY" || -n "$WAYLAND_DISPLAY" ]]; then
case "$XDG_CURRENT_DESKTOP" in
KDE|LXQT|LXQt)
backends=(qt qt5 gnome3 gtk curses tty)
;;
*)
backends=(gnome3 gtk qt qt5 curses tty)
;;
esac
fi
test -e /usr/lib/libgtk-x11-2.0.so.0 && for backend in "${backends[@]}"
exec /usr/bin/pinentry-gtk-2 "$@" do
lddout=$(ldd "/usr/bin/pinentry-$backend" 2>/dev/null) || continue
[[ "$lddout" == *'not found'* ]] && continue
exec "/usr/bin/pinentry-$backend" "$@"
done
exec /usr/bin/pinentry-curses "$@" exit 1