aboutsummaryrefslogtreecommitdiffstats
path: root/main/pinentry/APKBUILD
blob: baf6be77783bae72782962c798242ab2e3bc12f3 (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
50
51
52
53
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pinentry
pkgver=0.9.0
pkgrel=0
pkgdesc="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
url="http://www.gnupg.org/aegypten2"
arch="all"
license="GPL2+"
depends=""
install="pinentry.post-install pinentry.post-deinstall"
makedepends="ncurses-dev libcap-dev gtk+-dev"
subpackages="$pkgname-doc $pkgname-gtk"
source="ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}
build () {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-pinentry-gtk \
		--enable-pinentry-gtk2 \
		--disable-pinentry-qt \
		--enable-pinentry-curses \
		--enable-pinentry-gtk2 \
		--enable-fallback-curses \
		|| return 1

	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	# created by post install scripts so we can override with gtk version
	rm -f "$pkgdir"/usr/bin/pinentry
}

gtk() {
	install="pinentry-gtk.post-install pinentry-gtk.post-deinstall"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/pinentry-gtk* "$subpkgdir"/usr/bin/
}

md5sums="40a05856cb3accf6679987b7899b0f5a  pinentry-0.9.0.tar.bz2"
sha256sums="90045a07ab8e1a8e1ecf5d19b51691f195525e579fa5d71d7e92c120b05490ab  pinentry-0.9.0.tar.bz2"
sha512sums="2cc53a5c3852edaf6e940228d9b43fe4709344eba5fe230b7afd22b2c0239d0b258917d75661d80590b2d61c6fe9dac8ad15a0b4a0a0e7fba90a9e1c07364edd  pinentry-0.9.0.tar.bz2"