mirror of
https://github.com/termux/termux-packages.git
synced 2025-09-25 10:02:32 +00:00
Remove git describe command in Makefile to prevent the following error and fix version. fatal: not a git repository (or any of the parent directories): .git
23 lines
616 B
Diff
23 lines
616 B
Diff
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -1,14 +1,14 @@
|
|
-include environ.inc
|
|
.PHONY: help deps dev build install image release test clean clean-all
|
|
|
|
-export CGO_ENABLED=0
|
|
-VERSION=$(shell git describe --abbrev=0 --tags 2>/dev/null || echo "0.0.0")
|
|
-COMMIT=$(shell git rev-parse --short HEAD || echo "HEAD")
|
|
-BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
|
|
+export CGO_ENABLED=1
|
|
+VERSION=$(echo "0.0.0")
|
|
+COMMIT=$(echo "HEAD")
|
|
+BRANCH="master"
|
|
GOCMD=go
|
|
GOVER=$(shell go version | grep -o -E 'go1\.17\.[0-9]+')
|
|
|
|
-DESTDIR=/usr/local/bin
|
|
+DESTDIR=@TERMUX_PREFIX@/bin
|
|
|
|
ifeq ($(BRANCH), master)
|
|
IMAGE := prologic/saltyim
|