app=gpgme
version=1.13.1
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"

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

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

  # TODO: disable linking against qt5 
  ./configure \
    --prefix="" \
    --disable-static \
    --disable-gpg-test

  make
  make install DESTDIR=$pkg 

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
11de670c6cf512508103fe67af56d9fbb2a9dda6fc6fa3cd321371bbe337c7c2c81913ca557d07187adb2a63d37ea1a44da97ab22345bbe6022c405d0cb083b8  gpgme-1.13.1.tar.bz2
"
