# $Id: PKGBUILD 79067 2010-04-30 06:04:43Z tpowa $ # Maintainer: Tobias Powalowski pkgname=pinentry pkgver=0.8.0 pkgrel=1 pkgdesc="a collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol" arch=('i686' 'x86_64') license=('GPL') url="http://www.gnupg.org/aegypten2" depends=('ncurses' 'libcap>=2.16') makedepends=('gtk' 'qt3' 'gtk2' 'qt') optdepends=('gtk: for gtk backend' 'gtk2: for gtk2 backend' 'qt3: for qt3 backend' 'qt: for qt4 backend') source=(ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.gz) build() { cd $startdir/src/$pkgname-$pkgver [ "$QTDIR" = "" ] && source /etc/profile.d/qt3.sh for file in qt4/*.moc; do /usr/bin/moc ${file/.moc/.h} > ${file} done ./configure --prefix=/usr \ --enable-pinentry-curses \ --enable-pinentry-gtk \ --enable-pinentry-gtk2 \ --enable-pinentry-qt \ --enable-pinentry-qt4 \ --enable-fallback-curses make || return 1 make DESTDIR=${pkgdir} install || return 1 rm ${pkgdir}/usr/share/info/dir || return 1 rm ${pkgdir}/usr/bin/pinentry || return 1 ln -s /usr/bin/pinentry-gtk-2 ${pkgdir}/usr/bin/pinentry || return 1 } md5sums=('590be1b00f9ab63205843c7fed8caf35')