-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
47 lines (42 loc) · 1.49 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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.3.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=9b3cd5226e7597f2fded399a3bc659923351536559e9db0826981bca316494de
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
}
}