PKG_NAME?=$(LUCI_NAME)
-PKG_VERSION?=$(if $(DUMP),x,$(strip $(shell \
- set -- $$(git log -1 --format="%ct %h" --abbrev=7); \
+PKG_PO_VERSION?=$(if $(DUMP),x,$(strip $(shell \
+ set -- $$(git log -1 --format="%ct %h" --abbrev=7 -- po); \
+ secs="$$(($$1 % 86400))"; \
+ yday="$$(date --utc --date="@$$1" "+%y.%j")"; \
+ printf 'git-%s.%05d-%s' "$$yday" "$$secs" "$$2" \
+)))
+
+PKG_SRC_VERSION?=$(if $(DUMP),x,$(strip $(shell \
+ set -- $$(git log -1 --format="%ct %h" --abbrev=7 -- . ':(exclude)po'); \
secs="$$(($$1 % 86400))"; \
yday="$$(date --utc --date="@$$1" "+%y.%j")"; \
printf 'git-%s.%05d-%s' "$$yday" "$$secs" "$$2" \
SUBMENU:=$(if $(LUCI_MENU.$(LUCI_TYPE)),$(LUCI_MENU.$(LUCI_TYPE)),$(LUCI_MENU.app))
TITLE:=$(if $(LUCI_TITLE),$(LUCI_TITLE),LuCI $(LUCI_NAME) $(LUCI_TYPE))
DEPENDS:=$(LUCI_DEPENDS)
+ VERSION:=$(PKG_SRC_VERSION)
$(if $(LUCI_EXTRA_DEPENDS),EXTRA_DEPENDS:=$(LUCI_EXTRA_DEPENDS))
$(if $(LUCI_PKGARCH),PKGARCH:=$(LUCI_PKGARCH))
endef
HIDDEN:=1
DEFAULT:=LUCI_LANG_$(2)||(ALL&&m)
DEPENDS:=$(PKG_NAME)
+ VERSION:=$(PKG_PO_VERSION)
PKGARCH:=all
endef