Index: PKGBUILD =================================================================== --- PKGBUILD (revision 327746) +++ PKGBUILD (working copy) @@ -21,7 +21,7 @@ 'SKIP' '4f51d67c8cf92f2bb535e07d2ba7dc8972535dae077c678102a34fb87f3b3a9c') -backup=('usr/bin/pinentry') +backup=('etc/default/pinentry') build() { cd "${srcdir}/${pkgname}-${pkgver}" @@ -42,5 +42,7 @@ package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install - install ../pinentry "${pkgdir}/usr/bin/pinentry" + + install -Dm755 ../pinentry "${pkgdir}/usr/bin/pinentry" + install -Dm755 ../pinentry-preexec "${pkgdir}"/etc/default/pinentry } Index: pinentry =================================================================== --- pinentry (revision 327746) +++ pinentry (working copy) @@ -1,5 +1,13 @@ #!/bin/sh +# user-defined pre-exec hook +test -r "${XDG_CONFIG_HOME:-$HOME/.config}"/pinentry && + . "${XDG_CONFIG_HOME:-$HOME/.config}"/pinentry && + +# site-defined pre-exec hook +test -r /etc/default/pinentry && + . /etc/default/pinentry + test -e /usr/lib/libgtk-x11-2.0.so.0 && exec /usr/bin/pinentry-gtk-2 "$@" Index: pinentry-preexec =================================================================== --- pinentry-preexec (nonexistent) +++ pinentry-preexec (working copy) @@ -0,0 +1,5 @@ +#!/hint/sh + +# Define additional functionality for pinentry. For example +#test -e /usr/lib/libgcr-base-3.so.1 && exec /usr/bin/pinentry-gnome3 "$@" +#test -e /usr/lib/libQt5Widgets.so.5 && exec /usr/bin/pinentry-qt "$@" Property changes on: pinentry-preexec ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property