wt: fix updater

Use github tags and filter out tags like *-rc* tags (e.g. "3.3.6-rc2").
This commit is contained in:
Boris Nagaev 2016-07-14 00:06:50 +03:00
parent b52d3c0c9c
commit 86edac88a9
1 changed files with 4 additions and 3 deletions

View File

@ -11,9 +11,10 @@ $(PKG)_URL := https://github.com/kdeforche/wt/archive/$($(PKG)_VERSION).tar
$(PKG)_DEPS := gcc boost graphicsmagick libharu openssl pango postgresql qt sqlite
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://sourceforge.net/projects/witty/files/wt/' | \
$(SED) -n 's,.*<a href="/projects/witty/files/wt/\([0-9][^>]*\)/.*,\1,p' | \
head -1
$(call MXE_GET_GITHUB_ALL_TAGS, kdeforche/wt) \
| grep -v 'rc' \
| $(SORT) -V \
| tail -1
endef
define $(PKG)_BUILD