summaryrefslogtreecommitdiff
path: root/repo/pinentry/pinentry.xibuild
blob: f9743263f170551ccb11402c0807c3bc1a40de97 (plain)
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
48
49
#!/bin/sh

NAME="pinentry"
DESC="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"

MAKEDEPS=" ncurses libcap libgpg-error libassuan "

PKG_VER=1.2.1
SOURCE="https://gnupg.org/ftp/gcrypt/pinentry/pinentry-$PKG_VER.tar.bz2"

prepare() {
	cp -ar "$BUILD_ROOT" "$BUILD_ROOT-libsecret"
}

build() {
	_build \
		--disable-libsecret \
		--enable-pinentry-curses \
		--enable-pinentry-tty

	cd "$BUILD_ROOT-libsecret"
	_build \
		--enable-libsecret \
		--enable-pinentry-curses \
		--disable-pinentry-tty
}

_build() {
	./configure \
		--prefix=/usr \
		--disable-pinentry-gtk2 \
		--disable-pinentry-gnome3 \
		--disable-pinentry-qt \
		--enable-fallback-curses \
		"$@"
	make
}

check() {
	make check
}

package() {
	make -C "$BUILD_ROOT" DESTDIR="$PKG_DEST" install

	# created by post install scripts so we can override with other UI versions
	rm -f "$PKG_DEST"/usr/bin/pinentry
}