#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=mpfr _pkgver=4.2.0 _patchver=4 pkgrel=01 pkgver=${_pkgver}.p${_patchver} #pkgver=$_pkgver pkgdesc='Multiple-precision floating-point library' url='https://www.mpfr.org/' depends=('glibc' 'gmp') makedepends=('autoconf-archive' 'automake') #options=(debug) ### uncomment here for debug pkg source=(https://ftp.gnu.org/gnu/mpfr/mpfr-${_pkgver}.tar.xz{,.sig} tsprintf.patch::https://gitlab.inria.fr/mpfr/mpfr/-/commit/5172494c09718ffcb7ef1f19b3b211e3bce8781a.patch patches.diff) # wget https://www.mpfr.org/mpfr-4.1.1/allpatches -O patches.diff ## options=(debug) ## uncomment this to produce the debug pkg prepare() { cd $pkgname-${_pkgver} patch -Np1 < ../tsprintf.patch # sed -i '/check_vsprintf ("+1,234,567/d' tests/tsprintf.c autoreconf -fiv } build() { cd $pkgname-${_pkgver} ./configure --prefix=/usr \ --enable-thread-safe \ --enable-shared make } check() { cd $pkgname-${_pkgver} make check make check-exported-symbols } package() { cd $pkgname-${_pkgver} make DESTDIR="$pkgdir" install } #---- arch license gpg-key & sha256sums ---- arch=(x86_64) license=('GPL3' 'LGPL3') validpgpkeys=('07F3DBBECC1A39605078094D980C197698C3739D' 'A534BE3F83E241D918280AEB5831D11A0D4DB02A') # Vincent Lefevre sha256sums=(06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993 # mpfr-4.2.0.tar.xz 8151b7ef1b84c6384a08b05e007fa42da877a18528c44206b64d78b9baedcb7a # mpfr-4.2.0.tar.xz.sig c05587045fb064853bfd5d2953f95bbc9f3630787a9c45e77e6509f3ebabbcd3 # tsprintf.patch 75af77904037442fcd3061a4fee2394194716c542e96989dcfac2445c842daf1) # patches.diff ## af9affda3b97228b527c95b7a693ebeb033a8485342861b24f2824487e694843 mpfr-4.2.0.p4-01-x86_64.pkg.tar.lz