summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2021-01-08 06:45:06 (GMT)
committerTony Theodore <tonyt@logyst.com>2021-01-08 06:45:06 (GMT)
commit88138448a93519b2728486d41ca005c45cdcb775 (patch)
treef9a09a7729663b875eb0d2435cc92c58b956c734
parent904dfd96d95d1b606eb86eb18920c587f679ce16 (diff)
downloadmxe-88138448a93519b2728486d41ca005c45cdcb775.zip
mxe-88138448a93519b2728486d41ca005c45cdcb775.tar.gz
mxe-88138448a93519b2728486d41ca005c45cdcb775.tar.bz2
mpfr: fix update macro
taken from and closes #2592
-rw-r--r--src/mpfr.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mpfr.mk b/src/mpfr.mk
index 4991f91..f09411a 100644
--- a/src/mpfr.mk
+++ b/src/mpfr.mk
@@ -16,8 +16,9 @@ $(PKG)_DEPS_$(BUILD) := gmp
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://www.mpfr.org/mpfr-current/#download' | \
- grep 'mpfr-' | \
- $(SED) -n 's,.*mpfr-\([0-9][^<]*\)/.*,\1,p' | \
+ grep -a 'mpfr-' | \
+ LC_ALL=C $(SED) 's/[\d128-\d255]//g' | \
+ $(SED) 's/^.*mpfr-\([0-9\.]*\)\..*/\1/p' | \
head -1
endef