changeset 6053:3271eabb7af5

* src/gdal.mk: update gdal update rule to use github
author John Donoghue <john.donoghue@ieee.org>
date Fri, 14 Jan 2022 08:14:13 -0500
parents c49cd10af708
children 50d4dfce916c
files src/gdal.mk
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gdal.mk	Tue Jan 11 22:23:06 2022 +0100
+++ b/src/gdal.mk	Fri Jan 14 08:14:13 2022 -0500
@@ -12,9 +12,9 @@
 $(PKG)_DEPS     := zlib libpng tiff libgeotiff libiconv jpeg jasper giflib expat sqlite curl postgresql gta proj pcre qhull
 
 define $(PKG)_UPDATE
-    $(WGET) -q -O- 'http://trac.osgeo.org/gdal/wiki/DownloadSource' | \
-    $(SED) -n 's,.*gdal-\([0-9][^>]*\)\.tar.*,\1,p' | \
-    head -1
+    $(WGET) -q -O- 'https://github.com/OSGeo/gdal/tags' | \
+    $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(GREP) -v "RC" | $(SORT) -V | \
+    tail -1
 endef
 
 define $(PKG)_BUILD