53 lines
1.7 KiB
Bash
53 lines
1.7 KiB
Bash
# Template file for 'pinentry-gtk'
|
|
# NOTE: keep this pkg synchronized with srcpkgs/pinentry.
|
|
# NOTE: it's splitted this way to avoid cyclic dependencies.
|
|
_desc="PIN or passphrase entry dialogs for GnuPG"
|
|
|
|
pkgname=pinentry-gtk
|
|
version=1.1.0
|
|
revision=6
|
|
wrksrc="pinentry-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--without-libcap --enable-fallback-curses
|
|
--disable-pinentry-curses --disable-pinentry-tty
|
|
--disable-pinentry-emacs --enable-pinentry-qt
|
|
--enable-pinentry-gtk2 --enable-pinentry-gnome3
|
|
$(vopt_enable libsecret)"
|
|
hostmakedepends="pkg-config qt5-host-tools"
|
|
makedepends="ncurses-devel libassuan-devel libgpg-error-devel
|
|
gcr-devel gtk+-devel qt5-devel $(vopt_if libsecret libsecret-devel)"
|
|
short_desc="${_desc} based on GTK+"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.gnupg.org/related_software/pinentry/index.html"
|
|
distfiles="https://gnupg.org/ftp/gcrypt/pinentry/pinentry-${version}.tar.bz2"
|
|
checksum=68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570
|
|
|
|
alternatives="pinentry:pinentry:/usr/bin/pinentry-gtk-2"
|
|
|
|
build_options="libsecret"
|
|
build_options_default="libsecret"
|
|
desc_option_libsecret="Enable support for saving passwords via libsecret"
|
|
|
|
post_install() {
|
|
rm -f ${DESTDIR}/usr/bin/pinentry
|
|
rm -rf ${DESTDIR}/usr/share/info
|
|
}
|
|
|
|
pinentry-qt_package() {
|
|
depends="pinentry>=${version}_${revision}"
|
|
short_desc="${_desc} based on Qt"
|
|
alternatives="pinentry:pinentry:/usr/bin/pinentry-qt"
|
|
pkg_install() {
|
|
vmove usr/bin/pinentry-qt
|
|
}
|
|
}
|
|
|
|
pinentry-gnome_package() {
|
|
depends="pinentry>=${version}_${revision}"
|
|
short_desc="${_desc} for the GNOME desktop"
|
|
alternatives="pinentry:pinentry:/usr/bin/pinentry-gnome3"
|
|
pkg_install() {
|
|
vmove usr/bin/pinentry-gnome3
|
|
}
|
|
}
|