core/pinentry/PKGBUILD
Phil Miller 2b06bdbc94 * renamed qtmod and qtmod-phonon to qt and phonon
* PKGBUILD changes to fix build issues
2010-05-20 04:03:20 +00:00

36 lines
1.2 KiB
Bash

# $Id: PKGBUILD 79067 2010-04-30 06:04:43Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
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=('gtk2' 'qt')
optdepends=('gtk2: for gtk2 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 \
--disable-pinentry-gtk \
--enable-pinentry-gtk2 \
--disable-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')