archrelease: copy trunk to extra-x86_64
[arch-packages.git] / mpfr / repos / core-x86_64 / PKGBUILD
blobf113edf6be1cd8b4bada5e70aeb132e89b1b7882
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>
6 pkgname=mpfr
7 _pkgver=4.2.0
8 _patchver=7
9 pkgrel=2
10 pkgver=${_pkgver}.p${_patchver}
11 #pkgver=$_pkgver
12 pkgdesc='Multiple-precision floating-point library'
13 arch=(x86_64)
14 url='https://www.mpfr.org/'
15 license=(GPL3 LGPL3)
16 depends=(glibc gmp)
17 source=(https://ftp.gnu.org/gnu/mpfr/mpfr-${_pkgver}.tar.xz{,.sig}
18         patches.diff) # wget https://www.mpfr.org/mpfr-${_pkgver}/allpatches -O patches.diff
19 sha512sums=('58e843125884ca58837ae5159cd4092af09e8f21931a2efd19c15de057c9d1dc0753ae95c592e2ce59a727fbc491af776db8b00a055320413cdcf2033b90505c'
20             'SKIP'
21             '12cb553946b372da762b919a523a0dbb5c7b9f7931fd018013fb8e2a51b43d6ef421dda9c5ff6d89d7f75376d67f33205e7bcc3c69ef1aeaad5b3539218ec349')
22 b2sums=('dd88ae3a6a910ad8faeb791b49c3b1085de5d0d4c49c637c124bf4d9bc79fb621d0d1d69e07d0642b9b678f6d355a5830d083dfd189e1e91d0e04c970c10bd64'
23         'SKIP'
24         'bbe00cff15d382663db623e1ef834e44192df1ad22c436d5b870fcf8bf438bd618d8ae332fe7ac4c0fd1d638e0764ab84a81954b91d54e0337ccad3568a3a83b')
25 validpgpkeys=('07F3DBBECC1A39605078094D980C197698C3739D'
26               'A534BE3F83E241D918280AEB5831D11A0D4DB02A') # Vincent Lefevre <vincent@vinc17.net>
28 prepare() {
29   cd $pkgname-${_pkgver}
31   patch -p1 -i ../patches.diff
32   autoreconf -fiv
35 build() {
36   cd $pkgname-${_pkgver}
37   ./configure --prefix=/usr \
38     --enable-thread-safe \
39     --enable-shared
40   make
43 check() {
44   cd $pkgname-${_pkgver}
45   make check
46   make check-exported-symbols
49 package() {
50   cd $pkgname-${_pkgver}
51   make DESTDIR="$pkgdir" install