From f3ac4763bd3d8efdcf70b578646aa989d21e77c7 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Mon, 9 Mar 2015 20:03:47 -0700 Subject: jansson: add update script --- src/jansson.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jansson.mk b/src/jansson.mk index 18f3e92..ce9ecd2 100644 --- a/src/jansson.mk +++ b/src/jansson.mk @@ -11,8 +11,9 @@ $(PKG)_URL := http://www.digip.org/$(PKG)/releases/$($(PKG)_FILE) $(PKG)_DEPS := gcc autoconf automake libtool define $(PKG)_UPDATE - echo 'TODO: write update script for $(PKG).' >&2; - echo $($(PKG)_VERSION) + $(WGET) -q -O- 'http://www.digip.org/jansson/' | \ + $(SED) -n 's,.*/jansson-\([0-9][^>]*\)\.tar\.bz2.*,\1,p' | \ + tail -1 endef define $(PKG)_BUILD -- cgit v0.12