# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gnupg2
version=2.2.41
build=1sml
homepage="https://gnupg.org/"
download="https://gnupg.org/ftp/gcrypt/gnupg/gnupg-$version.tar.bz2"
desc="The GNU Privacy Guard version 2.x"
requires="bzip2 sqlite libassuan readline libksba libusb gnutls npth"

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

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

build() {
  ./configure \
    --prefix= \
    --sbindir=/bin

  make
  make install DESTDIR=$pkg 

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
f472e5058ea9881355f0c754a47acd0b5360c36e8976b8563dbc763a7cef792bf88227cc15fe5172d3e9bb9fc34d8448dd5c183949031e91a1997cc7f0f83b55  gnupg-2.2.41.tar.bz2
"
