From 041418da93ee5c4711f5cff53d0c419ae4654765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 24 Aug 2018 18:34:01 +0200 Subject: Add autopkg machinery --- autopkg-tag.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 autopkg-tag.mk (limited to 'autopkg-tag.mk') diff --git a/autopkg-tag.mk b/autopkg-tag.mk new file mode 100644 index 0000000..9e97ed7 --- /dev/null +++ b/autopkg-tag.mk @@ -0,0 +1,11 @@ +# Autopkg tracking latest version tag +AUTOPKG_VARIANT:=tag +$(call include_mk, autopkg-common.mk) + +# Explicitly fetch branch +$(shell git $(GIT_ARGS) fetch --prune --prune-tags --force "$(PKG_SOURCE_URL)" "$(PKG_SOURCE_BRANCH):$(PKG_SOURCE_BRANCH)") + +PKG_SOURCE_VERSION:=$(shell git $(GIT_ARGS) tag | grep '^v' | sort | tail -1) +PKG_VERSION:=$(subst v%,%,$(PKG_SOURCE_VERSION)) + +$(eval $(call AUTOPKG_TAIL)) -- cgit v1.2.3