# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=pinentry pkgver=0.9.5 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 # 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="55439c4436b59573a29e144916ee5b61 pinentry-0.9.5.tar.bz2" sha256sums="6a57fd3afc0d8aaa5599ffcb3ea4e7c42c113a181e8870122203ea018384688c pinentry-0.9.5.tar.bz2" sha512sums="31a190cacf45fd3ff5128a6a1a9f317fb09850fd595d5985392ea306ed65fa9232e2203458a9989eaac3b6e9d07199e01557912051f00a9a395cd1db61b44c39 pinentry-0.9.5.tar.bz2"