diff --git a/mpfr/PKGBUILD b/mpfr/PKGBUILD new file mode 100644 index 0000000..6328541 --- /dev/null +++ b/mpfr/PKGBUILD @@ -0,0 +1,35 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +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} + + ${CONFIGURE} \ + --disable-static \ + --enable-thread-safe \ + --docdir=/usr/share/doc/${pkgname}-${pkgver} + + make + make html +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install + make DESTDIR=${pkgdir} install-html +}