70 lines
1.8 KiB
Bash
70 lines
1.8 KiB
Bash
# Template file for 'pinentry'
|
|
pkgname=pinentry
|
|
version=1.1.0
|
|
revision=3
|
|
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-qt --enable-pinentry-tty
|
|
--enable-pinentry-gnome3"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="ncurses-devel gcr-devel gtk+-devel libassuan-devel libgpg-error-devel qt5-devel"
|
|
short_desc="PIN or passphrase entry dialogs for GnuPG"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.gnupg.org/related_software/pinentry/index.html"
|
|
distfiles="ftp://ftp.gnupg.org/gcrypt/${pkgname}/${pkgname}-${version}.tar.bz2"
|
|
checksum=68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-host-tools"
|
|
fi
|
|
|
|
pre_build() {
|
|
sed -e 's,ncursesw/curses.h,curses.h,' -i pinentry/pinentry-curses.c
|
|
}
|
|
|
|
post_install() {
|
|
rm ${DESTDIR}/usr/bin/pinentry
|
|
}
|
|
|
|
pinentry-tty_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" for dumb terminals"
|
|
pkg_install() {
|
|
vmove usr/bin/pinentry-tty
|
|
}
|
|
}
|
|
|
|
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+"
|
|
pkg_install() {
|
|
vmove usr/bin/pinentry-gtk-2
|
|
}
|
|
}
|
|
|
|
pinentry-emacs_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Emacs interface"
|
|
pkg_install() {
|
|
vmove usr/bin/pinentry-emacs
|
|
}
|
|
}
|
|
|
|
pinentry-gnome_package() {
|
|
depends="libgnome-keyring ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" for the GNOME desktop"
|
|
pkg_install() {
|
|
vmove usr/bin/pinentry-gnome3
|
|
}
|
|
}
|