# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gpgme
version=1.13.1
build=2sml
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="
cf3e44b4f6ded9c486f37bafa3d059863a177f01d6e3a635abe90ce8af23a5f6ee86eee854c313e90c5506be9a78bee4e2ed3fa24faa887c8f8c19895613d0b1  gpgme-1.13.1.tar.lz
"
