APP=gnutls
VERSION=3.6.16
BUILD=1sml
HOMEPAGE='https://www.gnutls.org/'
DOWNLOAD='https://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/gnutls-3.6.16.tar.xz'
DESC="GNU TLS 1.0 and SSL 3.0 implementation"
REQUIRES="gcc-libs zlib gmp libidn libtasn1 nettle openssl"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-openssl-compatibility \
    --disable-static \
    --without-p11-kit 

  make
  make install DESTDIR=$PKG

  cp LICENSE* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
72c78d7fcb024393c1d15f2a1856608ae4460ba43cc5bbbb4c29b80508cae6cb822df4638029de2363437d110187e0a3cc19a7288c3b2f44b2f648399a028438  gnutls-3.6.16.tar.xz
"
