From dd57027830c597590a3b5fd90b1084a8f3616c18 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 4 Jun 2022 15:09:32 +0100 Subject: added pinentry --- repo/pinentry/pinentry.xibuild | 57 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 repo/pinentry/pinentry.xibuild (limited to 'repo/pinentry/pinentry.xibuild') diff --git a/repo/pinentry/pinentry.xibuild b/repo/pinentry/pinentry.xibuild new file mode 100644 index 0000000..c8fa0a7 --- /dev/null +++ b/repo/pinentry/pinentry.xibuild @@ -0,0 +1,57 @@ +#!/bin/sh + +NAME="pinentry" +DESC="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol" + +MAKEDEPS=" ncurses libcap libgpg-error libassuan gcr libsecret" + +PKG_VER=1.2.0 +SOURCE="https://gnupg.org/ftp/gcrypt/pinentry/pinentry-$PKG_VER.tar.bz2" + +ADDITIONAL=" +pinentry-curses-ss.post-install +pinentry.post-install +pinentry.post-upgrade +" + +prepare() { + default_prepare + + cp -ar "$BUILD_ROOT" "$BUILD_ROOT-libsecret" +} + +build() { + _build \ + --disable-libsecret \ + --enable-pinentry-curses \ + --enable-pinentry-tty + + cd "$BUILD_ROOT-libsecret" + _build \ + --enable-libsecret \ + --enable-pinentry-curses \ + --disable-pinentry-tty +} + +_build() { + ./configure \ + --prefix=/usr \ + --disable-pinentry-gtk2 \ + --disable-pinentry-gnome3 \ + --disable-pinentry-qt \ + --enable-fallback-curses \ + "$@" + make +} + +check() { + make check +} + +package() { + make -C "$BUILD_ROOT" DESTDIR="$PKG_DEST" install + + # created by post install scripts so we can override with other UI versions + rm -f "$PKG_DEST"/usr/bin/pinentry +} + -- cgit v1.2.1