# Maintainer: PktSurf <smlinux@pktsurf.in>
app=gnutls
version=3.8.0
build=1sml
homepage="https://www.gnutls.org/"
download="https://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/gnutls-$version.tar.xz"
desc="GNU TLS 1.0 and SSL 3.0 implementation"
requires="gcc-libs zlib gmp libidn libtasn1 nettle openssl"

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

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

build() {
  ./configure \
    --prefix= \
    --enable-openssl-compatibility \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp LICENSE* $pkgdocs/

  mkfinalpkg
}

sha512sums="
3d018db58a429aa63db82f4feb1aea62f80a216c6f3f7ccf581f98ea894dd86dbf8435a867191d906a8db9e5b4e3bd2632b02eb9bc53ab4af49e641a1f70a796  gnutls-3.8.0.tar.lz
"
