summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e7112fde4f39ea12cb6534a7d28c03a3bfb65a4c (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
# Maintainer: Volker Schatz <arch@my-name-without-hyphen.com>
pkgname="pinentry-tty"
pkgver=0.9.7
pkgrel=1
pkgdesc="Passphrase entry on the command line for GnuPG and others"
depends=('libcap>=2.16')
provides=('pinentry')
arch=('i686' 'x86_64')
license=('GPL')
url="http://gnupg.org/related_software/pinentry/"
source=("ftp://ftp.gnupg.org/gcrypt/pinentry/pinentry-$pkgver.tar.bz2")
md5sums=('9510b2de013e818dab619e468298703a')

build() {
    cd $srcdir/pinentry-$pkgver 
    ./configure --prefix=/usr \
                --enable-pinentry-tty \
                --disable-pinentry-curses \
                --disable-pinentry-gtk3 \
                --disable-pinentry-gtk2 \
                --disable-pinentry-qt \
                --disable-fallback-curses
    make 
} 

package() {
    cd $srcdir/pinentry-$pkgver 
    make DESTDIR=${pkgdir} install 
    # Remove files conflicting with official pinentry package:
    cd $pkgdir
    rm -f usr/bin/pinentry
    rm -f usr/share/info/pinentry.info
    echo "******************************************************"
    echo "*  Remember to add the line:"
    echo "*  pinentry-program /usr/bin/pinentry-tty"
    echo "*  to your ~/.gnupg/gpg-agent.conf to use this program"
    echo "******************************************************"
}