--- a/pinentry.eselect 2024-01-10 00:13:03.214008508 +0300 +++ b/pinentry.eselect 2024-01-10 00:15:31.156736469 +0300 @@ -6,14 +6,21 @@ VERSION="0.7.3" SYMLINK_PATH=/usr/bin/pinentry -SYMLINK_TARGETS=( - pinentry-efl - pinentry-gnome3 - pinentry-qt5 - pinentry-curses - pinentry-tty - pinentry-emacs -) +# We will override it, but bin-symlink lib requires some value +SYMLINK_TARGETS=( pinentry-tty) SYMLINK_DESCRIPTION='pinentry binary' inherit bin-symlink + +# override function from bin-symlink +find_targets() { + local basedir=${SYMLINK_PATH%/*} + TARGETS=() + + local f + for f in "${EROOT}/${basedir}"/pinentry-*; do + if [[ -x "${f}" ]]; then + TARGETS+=( "${f#*/}" ) + fi + done +}