# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gpgme
version=1.20.0
build=1sml
homepage="https://gnupg.org/software/gpgme/index.html"
download="https://gnupg.org/ftp/gcrypt/gpgme/gpgme-$version.tar.bz2"
desc="C language library to easily add crypto to a program"
requires="gcc-libs libassuan libgpg-error"

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

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

build() {
  # TODO: disable linking against qt5 
  ./configure \
    --prefix="" \
    --disable-static \
    --disable-gpg-test \
    --enable-languages="cl cpp"

  make
  make install DESTDIR=$pkg 

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
82dfd272edd4adab09e8428bf809c13eeb50a4a7d2397c41d29ffa3832c4f46054ad75eb053fbcc876ebbf78bb8bcf71d95bc9dad68f4b326492ea513dd5b606  gpgme-1.20.0.tar.bz2
"