APP=gnupg2
VERSION=2.2.20
BUILD=1sml
HOMEPAGE='https://gnupg.org/'
DOWNLOAD='https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.2.20.tar.bz2'
DESC="The GNU Privacy Guard version 2.x"
REQUIRES="bzip2 sqlite libassuan readline libksba libusb gnutls npth"

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

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

  ./configure \
    --prefix="" \
    --sbindir=/bin \
    --sysconfdir=/etc 

  make
  make install DESTDIR=$PKG 

  cp COPYING* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
f73470e4e17bf634e8cc5d680492df21a166c0b1b6ad352c4c0115e7f95c7347bed07b662d0a52ac201f86681db6deeb01b3fda81120f3326d51fe604ff12916  gnupg-2.2.20.tar.lz
"
