1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 # Contributor: Allan McRae <allan@archlinux.org>
4 # Contributor: damir <damir@archlinux.org>
10 pkgver=${_pkgver}.p${_patchver}
12 pkgdesc='Multiple-precision floating-point library'
14 url='https://www.mpfr.org/'
17 source=(https://ftp.gnu.org/gnu/mpfr/mpfr-${_pkgver}.tar.xz{,.sig}
18 tsprintf.patch::https://gitlab.inria.fr/mpfr/mpfr/-/commit/5172494c09718ffcb7ef1f19b3b211e3bce8781a.patch
19 patches.diff) # wget https://www.mpfr.org/mpfr-4.1.1/allpatches -O patches.diff
20 sha512sums=('58e843125884ca58837ae5159cd4092af09e8f21931a2efd19c15de057c9d1dc0753ae95c592e2ce59a727fbc491af776db8b00a055320413cdcf2033b90505c'
22 '6d68ee5d286997c9a0bb66bf8da71a8af39e375091b743f1858dea9054b0f4f725ea0bcc37d39ac87b8a95ae508204c61413f4b2cb741807558952ee1a5d81e9'
23 'aa98173d59a24d0f59acff0c2143db5623746db3f6445e300a018a124b35a6b57d631c357a9a890f23c748591f621a95d3a801bed7341b6c8b6ddcc86ecfb107')
24 b2sums=('dd88ae3a6a910ad8faeb791b49c3b1085de5d0d4c49c637c124bf4d9bc79fb621d0d1d69e07d0642b9b678f6d355a5830d083dfd189e1e91d0e04c970c10bd64'
26 '16222c0f409d757b6cad515d13a1673be26302f48bc206f8526cb46a2d357404b181811da6180326be136a265d63b8e47b81107b01f4c8abc4637fd9d5fca4ea'
27 'd6bed1d6fca2319db457096a81aca060c1bd934fcdf9c5f98ba44920a7e97c2a5e9c539ec554feb723fb98c84096e1cb615c0d973133c67f3c2097edc1c5b803')
28 validpgpkeys=('07F3DBBECC1A39605078094D980C197698C3739D'
29 'A534BE3F83E241D918280AEB5831D11A0D4DB02A') # Vincent Lefevre <vincent@vinc17.net>
32 cd $pkgname-${_pkgver}
34 patch -Np1 < ../tsprintf.patch
35 # sed -i '/check_vsprintf ("+1,234,567/d' tests/tsprintf.c
40 cd $pkgname-${_pkgver}
41 ./configure --prefix=/usr \
42 --enable-thread-safe \
48 cd $pkgname-${_pkgver}
50 make check-exported-symbols
54 cd $pkgname-${_pkgver}
55 make DESTDIR="$pkgdir" install