This commit is contained in:
joborun linux 2023-08-23 18:35:42 +03:00
parent ff55d561cb
commit 92744fea25
2 changed files with 59 additions and 32 deletions

View file

@ -6,27 +6,35 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=mpfr
_pkgver=4.2.0
_patchver=12
pkgrel=03
pkgver=${_pkgver}.p${_patchver}
#pkgver=$_pkgver
_pkgver=4.2.1
_patchver=0
if (( _patchver == 0 )); then
pkgver=$_pkgver
else
pkgver=$_pkgver.p$_patchver
fi
pkgrel=01
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-${_pkgver}/allpatches -O patches.diff
provides=(libmpfr.so)
# NOTE: download potentially existing patches from upstream:
# `curl patches.diff -o https://www.mpfr.org/mpfr-${_pkgver}/allpatches`
source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$_pkgver.tar.xz{,.sig}
patches.diff::https://www.mpfr.org/mpfr-${_pkgver}/allpatches)
## 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
for src in "${source[@]}"; do
[[ "$src" == *.diff ]] || [[ "$src" == *.patch ]] || continue
printf "Applying patch %s...\n" "$src"
patch -Np1 -i "../$src"
done
autoreconf -fiv
}
@ -58,11 +66,16 @@ license=('GPL3' 'LGPL3')
validpgpkeys=('07F3DBBECC1A39605078094D980C197698C3739D'
'A534BE3F83E241D918280AEB5831D11A0D4DB02A') # Vincent Lefevre <vincent@vinc17.net>
sha256sums=(06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993 # mpfr-4.2.0.tar.xz
8151b7ef1b84c6384a08b05e007fa42da877a18528c44206b64d78b9baedcb7a # mpfr-4.2.0.tar.xz.sig
c05587045fb064853bfd5d2953f95bbc9f3630787a9c45e77e6509f3ebabbcd3 # tsprintf.patch
a9099cee74188d5f522b7b3fca0097196c6dd38126f8f042d233010cbf92e8d0) # patches.diff
sha256sums=(277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2 # mpfr-4.2.1.tar.xz
9fc30cf79beae3e4b06520611ad47dbc69cc5953b06f79cb228334066ecf4e97 # mpfr-4.2.1.tar.xz.sig
a9099cee74188d5f522b7b3fca0097196c6dd38126f8f042d233010cbf92e8d0) # patches.diff
sha512sums=('bc68c0d755d5446403644833ecbb07e37360beca45f474297b5d5c40926df1efc3e2067eecffdf253f946288bcca39ca89b0613f545d46a9e767d1d4cf358475'
'SKIP'
'SKIP')
b2sums=('ad69f53bc910294647523e7613b18a683f1d0f3dd994168ab2a46b66d0371ffa9b8e7cb59495f898470aea69d343e83fc722f11babe4af7b3a12665a1e65860c'
'SKIP'
'SKIP')
## 5b315801b7869fc7b36cfa00ad42e0f5fcefef91239fedcbdfc72f1869340344 mpfr-4.2.0.p12-03-x86_64.pkg.tar.lz
## 3ca1223043e41abea216cdcfe1bbc71020638bf1e13ce10aebab4ed82f760b62 mpfr-4.2.1-01-x86_64.pkg.tar.lz

View file

@ -4,31 +4,45 @@
# Contributor: damir <damir@archlinux.org>
pkgname=mpfr
_pkgver=4.2.0
_patchver=12
pkgrel=3
pkgver=${_pkgver}.p${_patchver}
#pkgver=$_pkgver
_pkgver=4.2.1
_patchver=0
if (( _patchver == 0 )); then
pkgver=$_pkgver
else
pkgver=$_pkgver.p$_patchver
fi
pkgrel=1
pkgdesc='Multiple-precision floating-point library'
arch=(x86_64)
url='https://www.mpfr.org/'
license=(GPL3 LGPL3)
depends=(glibc gmp)
source=(https://ftp.gnu.org/gnu/mpfr/mpfr-${_pkgver}.tar.xz{,.sig}
patches.diff) # wget https://www.mpfr.org/mpfr-${_pkgver}/allpatches -O patches.diff
sha512sums=('58e843125884ca58837ae5159cd4092af09e8f21931a2efd19c15de057c9d1dc0753ae95c592e2ce59a727fbc491af776db8b00a055320413cdcf2033b90505c'
'SKIP'
'c3de1907648cbf1a87d292bc017f1f651ed4449eb28459187821199016e0f12e7cb3b45d6163c9a4361d3b7499f5b6f771b271edcfa93399f3c28c1180b3b387')
b2sums=('dd88ae3a6a910ad8faeb791b49c3b1085de5d0d4c49c637c124bf4d9bc79fb621d0d1d69e07d0642b9b678f6d355a5830d083dfd189e1e91d0e04c970c10bd64'
'SKIP'
'0c8e3da9057defe4289a9665f27ec03d2312d58bf6b2a108d089097d6b22fbc5b9fe92b1cb8607c3bd53f8b93d82c5db6a467a0d7881ed8e893560a24b33e061')
license=(
GPL-3.0-or-later
LGPL-3.0-or-later
)
depends=(
glibc
gmp
)
provides=(libmpfr.so)
# NOTE: download potentially existing patches from upstream:
# `curl patches.diff -o https://www.mpfr.org/mpfr-${_pkgver}/allpatches`
source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$_pkgver.tar.xz{,.sig})
sha512sums=('bc68c0d755d5446403644833ecbb07e37360beca45f474297b5d5c40926df1efc3e2067eecffdf253f946288bcca39ca89b0613f545d46a9e767d1d4cf358475'
'SKIP')
b2sums=('ad69f53bc910294647523e7613b18a683f1d0f3dd994168ab2a46b66d0371ffa9b8e7cb59495f898470aea69d343e83fc722f11babe4af7b3a12665a1e65860c'
'SKIP')
validpgpkeys=('07F3DBBECC1A39605078094D980C197698C3739D'
'A534BE3F83E241D918280AEB5831D11A0D4DB02A') # Vincent Lefevre <vincent@vinc17.net>
prepare() {
cd $pkgname-${_pkgver}
patch -p1 -i ../patches.diff
for src in "${source[@]}"; do
[[ "$src" == *.diff ]] || [[ "$src" == *.patch ]] || continue
printf "Applying patch %s...\n" "$src"
patch -Np1 -i "../$src"
done
autoreconf -fiv
}