aboutsummaryrefslogtreecommitdiffstats
path: root/main/pinentry/APKBUILD
blob: ded6d4219df1d3fee72cfcab8d5f47fd19966124 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pinentry
pkgver=0.9.7
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 libgpg-error-dev libassuan-dev"
subpackages="$pkgname-doc $pkgname-gtk"
source="ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2"

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1

	# 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/ || return 1
}

md5sums="9510b2de013e818dab619e468298703a  pinentry-0.9.7.tar.bz2"
sha256sums="6398208394972bbf897c3325780195584682a0d0c164ca5a0da35b93b1e4e7b2  pinentry-0.9.7.tar.bz2"
sha512sums="9c5bc8f7246e8b0affd83fea6e64c47cecf6a12515a82dd2a6712b230306a9c3c97da4dbf6519ea98c85c88bf180a5a2b8c46cedcd594f224e5a08f2f0e35bf0  pinentry-0.9.7.tar.bz2"