From d20b41f2eee9317c4a551e6ed9dc719f32f87ee8 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Wed, 16 Dec 2015 17:07:41 -0800 Subject: libass: Fix update routine --- src/libass.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libass.mk b/src/libass.mk index 428beb5..39330d7 100644 --- a/src/libass.mk +++ b/src/libass.mk @@ -11,8 +11,10 @@ $(PKG)_URL := https://github.com/libass/libass/releases/download/$($(PKG)_V $(PKG)_DEPS := gcc fontconfig freetype fribidi harfbuzz define $(PKG)_UPDATE - $(WGET) -q -O- 'http://code.google.com/p/libass/downloads/list?sort=-uploaded' | \ - $(SED) -n 's,.*libass-\([0-9][^<]*\)\.tar.*,\1,p' | \ + $(WGET) -q -O- "https://api.github.com/repos/libass/libass/releases" | \ + grep 'tag_name' | \ + $(SED) -n 's,.*tag_name": "\([0-9][^>]*\)".*,\1,p' | \ + $(SORT) -Vr | \ head -1 endef -- cgit v0.12