# Maintainer: PktSurf <smlinux@pktsurf.in>
app=mpfr
version=3.1.6
build=2sml
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"

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

  mkfinalpkg
}

sha512sums="
f022d9afdd479fe6c4e15efec09de64e975d35556bc4b75664b9dbb58fbcf4826d791e8c2f79d7f2ed7ec8659a5f2128abc5d04b57fb592d1081b03bb824de7c  mpfr-3.1.6.tar.lz
"
