core/pinentry/PKGBUILD

39 lines
1015 B
Bash
Raw Normal View History

2014-12-12 17:53:46 +08:00
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
2010-03-14 23:48:48 +08:00
pkgname=pinentry
2014-12-12 17:53:46 +08:00
pkgver=0.9.0
pkgrel=1
2010-03-14 23:48:48 +08:00
pkgdesc="a collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
2014-12-12 17:53:46 +08:00
arch=('i686' 'x86_64')
2010-03-14 23:48:48 +08:00
license=('GPL')
2014-12-12 17:53:46 +08:00
url="http://gnupg.org/related_software/pinentry/"
2010-03-14 23:48:48 +08:00
depends=('ncurses' 'libcap>=2.16')
makedepends=('qt')
2014-12-12 17:53:46 +08:00
optdepends=('gtk2: for gtk2 backend'
'qt: for qt4 backend')
2013-06-15 03:45:22 +08:00
source=(ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2)
2014-12-12 17:53:46 +08:00
install=pinentry.install
md5sums=('40a05856cb3accf6679987b7899b0f5a')
2010-03-14 23:48:48 +08:00
build() {
2014-12-12 17:53:46 +08:00
cd $srcdir/$pkgname-$pkgver
2010-03-14 23:48:48 +08:00
for file in qt4/*.moc; do
2014-12-12 17:53:46 +08:00
moc ${file/.moc/.h} > ${file}
done
2010-03-14 23:48:48 +08:00
./configure --prefix=/usr \
--enable-pinentry-curses \
2014-12-12 17:53:46 +08:00
--disable-pinentry-gtk \
--disable-pinentry-qt \
2014-12-12 17:53:46 +08:00
--disable-pinentry-gtk2 \
2010-03-14 23:48:48 +08:00
--enable-pinentry-qt4 \
--enable-fallback-curses
2013-06-15 03:45:22 +08:00
make
}
package() {
2014-12-12 17:53:46 +08:00
cd $srcdir/$pkgname-$pkgver
2013-06-15 03:45:22 +08:00
make DESTDIR=${pkgdir} install
2010-03-14 23:48:48 +08:00
}