diff src/xext.mk @ 5021:32fbb60561a6

Add xext update rules * src/xext.mk, src/xextproto.mk: add update rule
author John Donoghue
date Mon, 11 Mar 2019 15:27:37 -0400
parents 58de4f56c797
children
line wrap: on
line diff
--- a/src/xext.mk	Mon Mar 11 15:27:36 2019 -0400
+++ b/src/xext.mk	Mon Mar 11 15:27:37 2019 -0400
@@ -10,6 +10,13 @@
 $(PKG)_URL      := http://www.x.org/archive/individual/lib/$($(PKG)_FILE)
 $(PKG)_DEPS     := xextproto xproto
 
+define $(PKG)_UPDATE
+    $(WGET) -q -O- 'https://www.x.org/archive/individual/lib/' | \
+    $(SED) -n 's,.*<a href="libXext-\([0-9\.]*\)\.tar.gz".*,\1,p' | \
+    $(SORT) -V |
+    tail -1
+endef
+
 ifeq ($(MXE_WINDOWS_BUILD),yes)
   define $(PKG)_BUILD
   endef