# Description: Secure PinEntry Dialog
# URL:         http://www.gnupg.org
# Maintainer:  Thomas Penteker, tek at serverop dot de
# Packager:    Alan Mizrahi, alan at mizrahi dot com dot ve
# Depends on:  pinentry, gtk

name=pinentry-gtk2
version=1.0.0
release=1
source=(ftp://ftp.gnupg.org/gcrypt/pinentry/pinentry-$version.tar.bz2)

build() {
    cd pinentry-$version

    ./configure \
      --prefix=/usr \
      --disable-pinentry-{curses,qt,qt5} \
      --enable-pinentry-gtk2

    make
    make DESTDIR=$PKG install

    rm -rf $PKG/usr/share
    rm $PKG/usr/bin/pinentry
}