# Maintainer: PktSurf <smlinux@pktsurf.in>
app=nettle
version=3.7.2
build=1sml
homepage="http://www.lysator.liu.se/~nisse/nettle/"
download="https://ftp.gnu.org/gnu/nettle/nettle-$version.tar.gz"
desc="small cryptographic library designed to fit easily in any programming language"
requires="gmp"

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

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

build() {
  ./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
"
