mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 15:37:14 +08:00
36 lines
941 B
Bash
36 lines
941 B
Bash
# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
|
|
|
pkgname=pinentry
|
|
pkgver=0.8.3
|
|
pkgrel=2
|
|
pkgdesc="a collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
|
|
arch=('x86_64')
|
|
license=('GPL')
|
|
url="http://www.gnupg.org/aegypten2"
|
|
depends=('ncurses' 'libcap>=2.16')
|
|
makedepends=('qt')
|
|
optdepends=('qt: for qt4 backend')
|
|
source=(ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2)
|
|
md5sums=('2ae681cbca0d9fb774b2c90b11ebf56c')
|
|
|
|
build() {
|
|
cd ${srcdir}/$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 \
|
|
--disable-pinentry-gtk2 \
|
|
--disable-pinentry-qt \
|
|
--enable-pinentry-qt4 \
|
|
--enable-fallback-curses
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/$pkgname-$pkgver
|
|
make DESTDIR=${pkgdir} install
|
|
}
|