summaryrefslogtreecommitdiff
path: root/extra/pinentry/PKGBUILD
blob: ae742029e6a0ad68f410743a821a9314018748e3 (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
# $Id: PKGBUILD 106680 2011-01-17 20:41:54Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=pinentry
pkgver=0.8.1
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
        gtk2-pinentry-segfault.patch)

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 
  make DESTDIR=${pkgdir} install 
  rm ${pkgdir}/usr/share/info/dir 
  rm ${pkgdir}/usr/bin/pinentry 
  ln -s /usr/bin/pinentry-gtk-2 ${pkgdir}/usr/bin/pinentry 
}
md5sums=('81f99904daee5331eb6738408bb024b6'
         'bd9888fafc56464b2c4deaad5b8edb07')