# Maintainer: PktSurf <smlinux@pktsurf.in>
app=pinentry
version=1.1.0
build=1sml
homepage="https://gnupg.org/related_software/pinentry/"
download="https://gnupg.org/ftp/gcrypt/pinentry/pinentry-$version.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"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix="" \
    --enable-pinentry-tty \
    --disable-pinentry-qt5

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

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