wurststulle/yaffmap-agent — comment on commit 777411c5e1ff52e4239c568d2d5f091199b444c3
File:  line 0
By stargieg:

with this awk statement the Makfile is broken
This Patch works for me
diff --git a/yaffmap_uci/Makefile b/yaffmap_uci/Makefile
index 1912340..09c5af5 100644
--- a/yaffmap_uci/Makefile
+++ b/yaffmap_uci/Makefile
@@ -1,9 +1,8 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=yaffmap_uci
-PKG_RELEASE:=$(shell LC_ALL=C git show --format=%ai --name-only --git-dir=$(CURDIR) \
- $( git rev-parse HEAD ) | awk '$1~/^[0-9]/{gsub(":","-",$2);printf "%s_%s",$1,$2}' )
-
+PKG_RELEASE:=$(shell LC_ALL=C git show --format=%ai --name-only | LC_ALL=C git show --format=%ai --name-only \
+ | head -n1 | sed -e 's/-/_/g' -e 's/:/_/g' -e 's/ /_/g' -e 's/+//g')
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)

include $(INCLUDE_DIR)/package.mk