pkgname=mpfr pkgver=4.2.1 pkgrel=1 pkgdesc="Multiple-precision floating-point library" arch=('x86_64') url="https://www.mpfr.org/" license=('GPL-3.0-or-later' 'LGPL-3.0-or-later') depends=('glibc' 'gmp') source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz) sha256sums=(277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2) build() { cd ${pkgname}-${pkgver} local configure_args=( --disable-static --enable-thread-safe --docdir=/usr/share/doc/${pkgname}-${pkgver} ${configure_options} ) ./configure ${configure_args[@]} make make html } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install make DESTDIR=${pkgdir} install-html }