changeset 4624:a8d8c1a0b573

* src/openblas.mk: implment PKG_UPDATE rule
author John D
date Sat, 10 Mar 2018 07:46:05 -0500
parents 8662d79455ad
children b8385340a96a
files src/openblas.mk
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/openblas.mk	Sat Mar 10 07:39:42 2018 -0500
+++ b/src/openblas.mk	Sat Mar 10 07:46:05 2018 -0500
@@ -24,8 +24,9 @@
 endif
 
 define $(PKG)_UPDATE
-    echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
-    echo $($(PKG)_VERSION)
+    $(WGET) -q -O- 'https://github.com/xianyi/OpenBLAS/tags' | \
+    $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(SORT) -Vr | \
+    head -1
 endef
 
 define $(PKG)_BUILD