APP=nettle
VERSION=3.7.2
BUILD=1sml
HOMEPAGE='http://www.lysator.liu.se/~nisse/nettle/'
DOWNLOAD="https://ftp.gnu.org/gnu/nettle/nettle-3.4.tar.gz"
DESC="small cryptographic library designed to fit easily in any programming language"
REQUIRES="gmp"

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

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

  ./configure \
    --prefix="" \
    --disable-static 

  make
  make install DESTDIR=$PKG

  sed -i 's@#.*$@@g' "$PKG"/lib/pkgconfig/hogweed.pc

  cp COPYING* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
692f052eb492bcf07690157d1496ea9b87b9e42f01d68b30f5be60f51596db37ce4adc0ea9e636889aba0e84b0357b02d888a77228a80f2d81a6f99c1021236f  nettle-3.7.2.tar.lz
"
