48 lines
1.5 KiB
Bash
48 lines
1.5 KiB
Bash
# Template file for 'pinentry'
|
|
# NOTE: keep this pkg synchronized with srcpkgs/pinentry-gtk.
|
|
# NOTE: it's splitted this way to avoid cyclic dependencies.
|
|
pkgname=pinentry
|
|
version=1.2.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--without-libcap --enable-pinentry-tty
|
|
--enable-pinentry-curses --enable-fallback-curses
|
|
--enable-pinentry-emacs --disable-pinentry-qt --disable-libsecret
|
|
--disable-pinentry-gtk2 --disable-pinentry-gnome3"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="ncurses-devel libassuan-devel libgpg-error-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="https://gnupg.org/ftp/gcrypt/pinentry/pinentry-${version}.tar.bz2"
|
|
checksum=10072045a3e043d0581f91cd5676fcac7ffee957a16636adedaa4f583a616470
|
|
|
|
alternatives="pinentry:pinentry:/usr/bin/pinentry-curses"
|
|
|
|
pre_build() {
|
|
sed -e 's,ncursesw/curses.h,curses.h,' -i pinentry/pinentry-curses.c
|
|
}
|
|
|
|
post_install() {
|
|
rm ${DESTDIR}/usr/bin/pinentry
|
|
}
|
|
|
|
pinentry-emacs_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - Emacs interface"
|
|
alternatives="pinentry:pinentry:/usr/bin/pinentry-emacs"
|
|
pkg_install() {
|
|
vmove usr/bin/pinentry-emacs
|
|
}
|
|
}
|
|
|
|
pinentry-tty_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" for dumb terminals"
|
|
alternatives="pinentry:pinentry:/usr/bin/pinentry-tty"
|
|
pkg_install() {
|
|
vmove usr/bin/pinentry-tty
|
|
}
|
|
}
|