APP=pinentry
VERSION=1.1.0
BUILD=1sml
HOMEPAGE="https://gnupg.org/related_software/pinentry/"
DOWNLOAD="https://gnupg.org/ftp/gcrypt/pinentry/pinentry-1.1.0.tar.bz2"
DESC="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
REQUIRES="netbsd-curses libassuan libcap libsecret gtk2 fltk p11-kit"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --enable-pinentry-tty \
    --disable-pinentry-qt5

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
a9de40224698761a064c3215e3112841f828eda67882298db13a437f80a93b765eeb52f95d7c1931a16a79f0148ac3c82a74a728eb09a2b14b7e533eaffccb98  pinentry-1.1.0.tar.lz
"
