changeset 2805:f1388c4ecf3b

package json-c: fix update macro
author Mark Brand <mabrand@mabrand.nl>
date Thu, 11 Oct 2012 16:59:27 +0200
parents f61e6eda0c2b
children e8df1076784f
files src/json-c.mk
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/json-c.mk	Thu Oct 11 16:34:39 2012 +0200
+++ b/src/json-c.mk	Thu Oct 11 16:59:27 2012 +0200
@@ -10,9 +10,8 @@
 $(PKG)_DEPS     := gcc
 
 define $(PKG)_UPDATE
-    $(WGET) - q -O 'https://github.com/json-c/json-c/downloads' | \
-    grep '<a href="/downloads/json-c/json-c/' | \
-    $(SED) -n -s,.*href="/downloads/json-c/json-c/json-c-\([0-9.]*\).tar.gz,\1,p' | \
+    $(WGET) -q -O- 'https://github.com/json-c/json-c/downloads' | \
+    $(SED) -n 's,.*href="/downloads/json-c/json-c/json-c-\([0-9.]*\).tar.gz.*,\1,p' | \
     head -1
 endef