void-packages/srcpkgs/pinentry/template
2017-09-11 00:43:31 +02:00

52 lines
1.4 KiB
Bash

# Template file for 'pinentry'
pkgname=pinentry
version=1.0.0
revision=2
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"
hostmakedepends="pkg-config"
makedepends="ncurses-devel gtk+-devel libassuan-devel libgpg-error-devel qt5-devel"
short_desc="PIN or passphrase entry dialogs for GnuPG"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
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
}
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+"
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
}
}