gentoo-overlay/dev-vcs/gitlab-git-http-server/files/fix-Makefile-0.3.0.patch

17 lines
543 B
Diff
Raw Normal View History

diff --git a/Makefile b/Makefile
2015-10-16 20:45:41 +02:00
index f6456e1..55af079 100644
--- a/Makefile
+++ b/Makefile
2015-10-16 20:45:41 +02:00
@@ -1,8 +1,8 @@
-PREFIX=/usr/local
-VERSION=$(shell git describe)-$(shell date -u +%Y%m%d.%H%M%S)
+PREFIX=${DESTDIR}/usr
+VERSION=0.3.0-$(shell date -u +%Y%m%d.%H%M%S)
gitlab-git-http-server: main.go githandler.go
2015-10-16 20:45:41 +02:00
- go build -ldflags "-X main.Version ${VERSION}" -o gitlab-git-http-server
+ go build -ldflags "-X main.Version=${VERSION}" -o gitlab-git-http-server
install: gitlab-git-http-server
install gitlab-git-http-server ${PREFIX}/bin/