package json-c: fix update macro

This commit is contained in:
Mark Brand 2012-10-11 16:59:27 +02:00
parent 7468ec5a3e
commit 9af45ac48c
1 changed files with 2 additions and 3 deletions

View File

@ -10,9 +10,8 @@ $(PKG)_URL := https://github.com/downloads/$(PKG)/$(PKG)/$($(PKG)_FILE)
$(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