summaryrefslogtreecommitdiffstats
path: root/src/vigra.mk
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-10-16 03:53:43 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-10-16 03:53:43 (GMT)
commit6073548905b40808538119db9ac7b140f1b65ab6 (patch)
tree5f1d5343989c64b86414d417fdf754bc1915e313 /src/vigra.mk
parent96a30e686e8c873a0fadda206a70dd495623a896 (diff)
downloadmxe-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.mk11
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