void-packages/srcpkgs/uhubctl/patches/Makefile.patch

12 lines
350 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@
CC ?= gcc
CFLAGS ?= -g -O0
CFLAGS += -Wall -Wextra -std=c99 -pedantic
-GIT_VERSION := $(shell git describe --match "v[0-9]*" --abbrev=8 --dirty --tags | cut -c2-)
+GIT_VERSION := $(shell basename "$(CURDIR)" | cut -d '-' -f 2)
ifeq ($(GIT_VERSION),)
GIT_VERSION := $(shell cat VERSION)
endif