summaryrefslogtreecommitdiff
path: root/user/pinentry/APKBUILD
blob: 5ec93c50070fa340ccd8f1aac11e3751202c1c3b (plain) (blame)
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
50
51
52
53
54
55
56
57
58
59
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=pinentry
pkgver=1.2.1
pkgrel=0
pkgdesc="Collection of passphrase entry handlers for the Assuan protocol"
url="https://www.gnupg.org/related_software/pinentry/"
arch="all"
license="GPL-2.0+"
depends=""
makedepends="gtk+2.0-dev libassuan-dev libcap-dev libgpg-error-dev ncurses-dev
	qt5-qtbase-dev"
subpackages="$pkgname-doc $pkgname-gtk $pkgname-qt5"
source="ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2
	pinentry
	"

build () {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-pinentry-gtk \
		--enable-pinentry-gtk2 \
		--enable-pinentry-qt \
		--enable-pinentry-curses \
		--enable-fallback-curses
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install

	rm -f "$pkgdir"/usr/bin/pinentry
	install -D -m755 "$srcdir"/pinentry "$pkgdir"/usr/bin/pinentry
}

gtk() {
	pkgdesc="GTK+ passphrase entry handler"
	install_if="$pkgname=$pkgver-r$pkgrel gtk+2.0"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/pinentry-gtk* \
		"$subpkgdir"/usr/bin/
}

qt5() {
	pkgdesc="Qt 5 passphrase entry handler"
	install_if="$pkgname=$pkgver-r$pkgrel qt5-qtbase"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/pinentry-qt* \
		"$subpkgdir"/usr/bin/
}

sha512sums="a665315628f4dcf07e16a22db3f3be15d7e7e93b3deec0546c7275b71b0e3bd65535a08af5e12d6339fd6595132df86529401d9d12bd17c428a3466e8dfafab6  pinentry-1.2.1.tar.bz2
3a6fbbe2ccdbf8d6ed5fddd960fabe9276b04d8ca1a14dded8a5f0de4b8de1636dee2cd343f2db8ff78a66b339faa6d517316f296ca924b8b2add9666f80c433  pinentry"