PKGBUILDs/extra/pinentry/PKGBUILD

38 lines
1.2 KiB
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# $Id: PKGBUILD 48309 2009-08-01 13:22:08Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=pinentry
pkgver=0.7.6
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=('5a4f676375fa882009da02013d77210f')