app=mpfr
version=3.1.6
build=1sml
homepage="https://www.mpfr.org/"
download="https://ftp.gnu.org/gnu/mpfr/mpfr-$version.tar.xz"
desc="Multiple-Precision Floating-Point Reliable Library"
requires="gmp"

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

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

  CFLAGS="-I/include" \
  LDFLAGS="-L/lib" \
  ./configure \
    --prefix="" \
    --enable-static

  make 
  make install DESTDIR=$pkg

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
746ee74d5026f267f74ab352d850ed30ff627d530aa840c71b24793e44875f8503946bd7399905dea2b2dd5744326254d7889337fe94cfe58d03c4066e9d8054  mpfr-3.1.6.tar.xz
"
