diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-10-16 03:53:43 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-10-16 03:53:43 (GMT) |
commit | 6073548905b40808538119db9ac7b140f1b65ab6 (patch) | |
tree | 5f1d5343989c64b86414d417fdf754bc1915e313 /src/vigra.mk | |
parent | 96a30e686e8c873a0fadda206a70dd495623a896 (diff) | |
download | mxe-6073548905b40808538119db9ac7b140f1b65ab6.zip mxe-6073548905b40808538119db9ac7b140f1b65ab6.tar.gz mxe-6073548905b40808538119db9ac7b140f1b65ab6.tar.bz2 |
vigra: Fix update macro
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/vigra.mk')
-rw-r--r-- | src/vigra.mk | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/vigra.mk b/src/vigra.mk index 0bd8976..3b041f2 100644 --- a/src/vigra.mk +++ b/src/vigra.mk @@ -11,11 +11,12 @@ $(PKG)_URL := http://hci.iwr.uni-heidelberg.de/vigra-old-versions/$($(PKG)_ $(PKG)_DEPS := gcc jpeg tiff libpng openexr define $(PKG)_UPDATE - $(WGET) -q -O- 'http://hci.iwr.uni-heidelberg.de/vigra/' | \ - grep 'Sources' | \ - grep '<a href="vigra' | \ - $(SED) -n 's,.*"vigra-\([0-9][^"]*\)-src.*,\1,p' | \ - head + $(WGET) -q -O- "https://api.github.com/repos/ukoethe/vigra/releases" | \ + grep 'tag_name' | \ + $(SED) -n 's,.*tag_name": "Version-\([0-9][^>]*\)".*,\1,p' | \ + tr '-' '.' | \ + $(SORT) -Vr | \ + head -1 endef define $(PKG)_BUILD |