qt: Fix update routine

This commit is contained in:
Timothy Gu 2015-06-18 19:37:20 -07:00
parent 8f7834b362
commit 4a4b5dc1f5
1 changed files with 4 additions and 3 deletions

View File

@ -11,9 +11,10 @@ $(PKG)_URL := http://download.qt.io/official_releases/qt/4.8/$($(PKG)_VERSI
$(PKG)_DEPS := gcc postgresql freetds openssl zlib libpng jpeg libmng tiff sqlite dbus
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://qt.gitorious.org/qt/qt/commits' | \
grep '<li><a href="/qt/qt/commit/' | \
$(SED) -n 's,.*<a[^>]*>v\([0-9][^<-]*\)<.*,\1,p' | \
$(WGET) -q -O- http://download.qt-project.org/official_releases/qt/4.8/ | \
$(SED) -n 's,.*href="\(4\.[0-9]\.[^/]*\)/".*,\1,p' | \
grep -iv -- '-rc' | \
$(SORT) -V | \
tail -1
endef