changeset 6251:a9b9ec161d0f

* src/sundials-ida.mk: add update implementation, update to 6.2.0
author John Donoghue <john.donoghue@ieee.org>
date Wed, 01 Jun 2022 10:03:57 -0400
parents 16e549a2cf11
children 2b42b66b5df9
files src/sundials-ida.mk
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/sundials-ida.mk	Tue May 31 08:20:35 2022 -0400
+++ b/src/sundials-ida.mk	Wed Jun 01 10:03:57 2022 -0400
@@ -3,8 +3,8 @@
 
 PKG             := sundials-ida
 $(PKG)_IGNORE   :=
-$(PKG)_VERSION  := 5.7.0
-$(PKG)_CHECKSUM := c04ecc9102851955b62e626a43ad5f604e890ab0
+$(PKG)_VERSION  := 6.2.0
+$(PKG)_CHECKSUM := 8b6e9eb4d51d4e6963c93bb7e1561b91cc13ca88
 $(PKG)_SUBDIR   := sundials-$($(PKG)_VERSION)
 $(PKG)_FILE     := sundials-$($(PKG)_VERSION).tar.gz
 $(PKG)_URL      := https://github.com/LLNL/sundials/releases/download/v$($(PKG)_VERSION)/$($(PKG)_FILE)
@@ -14,8 +14,9 @@
 endif
 
 define $(PKG)_UPDATE
-    echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
-    echo $($(PKG)_VERSION)
+    $(WGET) -q -O- 'https://github.com/LLNL/sundials/tags' | \
+    $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(SORT) -V | \
+    tail -1
 endef
 
 ifeq ($(MXE_WINDOWS_BUILD),yes)