diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-11-15 14:09:56 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-11-15 15:41:26 (GMT) |
commit | b28501f0315674266082a060e80f419f4590645c (patch) | |
tree | fb8f03374bbcc2056cf756d3b84fedbe45400bf9 | |
parent | de35582bc463a8bbf96e7f1d61b5be493cffe30f (diff) | |
download | mxe-b28501f0315674266082a060e80f419f4590645c.zip mxe-b28501f0315674266082a060e80f419f4590645c.tar.gz mxe-b28501f0315674266082a060e80f419f4590645c.tar.bz2 |
MXE_GET_GITHUB_TAGS: new argument, stripped prefix
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | src/muparser.mk | 3 | ||||
-rw-r--r-- | src/pire.mk | 3 |
3 files changed, 3 insertions, 4 deletions
@@ -139,6 +139,7 @@ endef define MXE_GET_GITHUB_TAGS $(WGET) -q -O- 'https://api.github.com/repos/$(strip $(1))/git/refs/tags/' \ | $(SED) -n 's#.*"ref": "refs/tags/\([^"]*\).*#\1#p' \ + | $(SED) 's,^$(strip $(2)),,g' \ | $(SORT) -V \ | tail -1 endef diff --git a/src/muparser.mk b/src/muparser.mk index 3783074..ecfe127 100644 --- a/src/muparser.mk +++ b/src/muparser.mk @@ -11,8 +11,7 @@ $(PKG)_URL := https://github.com/beltoforion/$(PKG)/archive/v$($(PKG)_VERSI $(PKG)_DEPS := gcc define $(PKG)_UPDATE - $(call MXE_GET_GITHUB_TAGS, beltoforion/muparser) | \ - $(SED) 's,^v,,g' + $(call MXE_GET_GITHUB_TAGS, beltoforion/muparser, v) endef define $(PKG)_BUILD diff --git a/src/pire.mk b/src/pire.mk index a9b8dfc..49b87a2 100644 --- a/src/pire.mk +++ b/src/pire.mk @@ -11,8 +11,7 @@ $(PKG)_URL := https://github.com/yandex/pire/archive/release-$($(PKG)_VERSI $(PKG)_DEPS := gcc define $(PKG)_UPDATE - $(call MXE_GET_GITHUB_TAGS, yandex/pire) | \ - $(SED) 's,^release-,,g' + $(call MXE_GET_GITHUB_TAGS, yandex/pire, release-) endef define $(PKG)_BUILD |