# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libgcrypt
version=1.10.2
build=1sml
homepage="https://www.gnupg.org/software/libgcrypt/index.html"
download="https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-$version.tar.bz2"
desc="General purpose crypto library based on GnuPG"
requires="libgpg-error"

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

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

build() {
  ./configure \
    --prefix= \
    --enable-shared=yes \
    --enable-static=no \
    --program-prefix="" \
    --program-suffix="" 

  make
  make install DESTDIR=$pkg

  cp COPYING* LICENSES $pkgdocs/

  mkfinalpkg
}

sha512sums="
71202e8300251cb41c3af9b731b01d31b674f99f4c0ca9f878f4fc14d00d65cda66cec1538e95a8cb3c79d231cd4bddec20507256633fd5f4987a598c6b76e17  libgcrypt-1.10.2.tar.lz
"