From b4eaab7e41caaaa3223ef3f593bca178b2c0da06 Mon Sep 17 00:00:00 2001 From: Yuusha Spacewolf Date: Thu, 17 Aug 2017 23:32:54 -0500 Subject: [PATCH] pinentry: build pinentry-qt Closes: #7436 [via git-merge-pr] --- srcpkgs/pinentry-qt | 1 + srcpkgs/pinentry/template | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 120000 srcpkgs/pinentry-qt diff --git a/srcpkgs/pinentry-qt b/srcpkgs/pinentry-qt new file mode 120000 index 00000000000..ca6c20e3c67 --- /dev/null +++ b/srcpkgs/pinentry-qt @@ -0,0 +1 @@ +pinentry \ No newline at end of file diff --git a/srcpkgs/pinentry/template b/srcpkgs/pinentry/template index b8ee454f174..1975af7b6e0 100644 --- a/srcpkgs/pinentry/template +++ b/srcpkgs/pinentry/template @@ -5,9 +5,9 @@ revision=1 build_style=gnu-configure configure_args="--disable-rpath --without-libcap --disable-pinentry-gtk --enable-pinentry-curses --enable-fallback-curses --enable-pinentry-gtk2 - --enable-pinentry-emacs" + --enable-pinentry-emacs --enable-pinentry-qt" hostmakedepends="pkg-config" -makedepends="ncurses-devel gtk+-devel libassuan-devel libgpg-error-devel" +makedepends="ncurses-devel gtk+-devel libassuan-devel libgpg-error-devel qt5-devel" short_desc="PIN or passphrase entry dialogs for GnuPG" maintainer="Christian Neukirchen " license="GPL-2" @@ -15,6 +15,10 @@ homepage="https://www.gnupg.org/related_software/pinentry/index.html" distfiles="ftp://ftp.gnupg.org/gcrypt/${pkgname}/${pkgname}-${version}.tar.bz2" checksum=1672c2edc1feb036075b187c0773787b2afd0544f55025c645a71b4c2f79275a +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-host-tools" +fi + pre_build() { sed -e 's,ncursesw/curses.h,curses.h,' -i pinentry/pinentry-curses.c } @@ -23,6 +27,14 @@ post_install() { rm ${DESTDIR}/usr/bin/pinentry } +pinentry-qt_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" based on Qt" + pkg_install() { + vmove usr/bin/pinentry-qt + } +} + pinentry-gtk_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" based on GTK+"