APP=mpfr
VERSION=3.1.6
BUILD=1sml
HOMEPAGE='https://www.mpfr.org/'
DOWNLOAD='https://ftp.gnu.org/gnu/mpfr/mpfr-3.1.6.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
"
