Correction recette packaging

This commit is contained in:
wpetit 2020-07-16 22:50:55 +02:00
parent 2ceba1f219
commit 99fb4ac6d9
1 changed files with 4 additions and 2 deletions

6
debian/rules vendored
View File

@ -11,6 +11,8 @@ GOPATH=$(HOME)/go
ifeq (, $(shell which go 2>/dev/null)) ifeq (, $(shell which go 2>/dev/null))
override_dh_auto_build: install-go override_dh_auto_build: install-go
override_dh_auto_clean: install-go
endif endif
ifeq (, $(shell which node 2>/dev/null)) ifeq (, $(shell which node 2>/dev/null))
@ -21,14 +23,14 @@ endif
dh $@ --with systemd dh $@ --with systemd
override_dh_auto_build: $(GOPATH) override_dh_auto_build: $(GOPATH)
GOPATH=$(GOPATH) PATH="$(PATH):/usr/local/go/bin:$(GOPATH)/bin" go mod vendor GOPATH=$(GOPATH) PATH="$(PATH):/usr/local/go/bin:$(GOPATH)/bin" make deps
GOPATH=$(GOPATH) PATH="$(PATH):/usr/local/go/bin:$(GOPATH)/bin" ARCH_TARGETS=$(ARCH) make release GOPATH=$(GOPATH) PATH="$(PATH):/usr/local/go/bin:$(GOPATH)/bin" ARCH_TARGETS=$(ARCH) make release
$(GOPATH): $(GOPATH):
mkdir -p $(GOPATH) mkdir -p $(GOPATH)
install-go: install-go:
wget https://dl.google.com/go/go$(GO_VERSION).$(OS)-$(ARCH).tar.gz wget -nc https://dl.google.com/go/go$(GO_VERSION).$(OS)-$(ARCH).tar.gz
tar -C /usr/local -xzf go$(GO_VERSION).$(OS)-$(ARCH).tar.gz tar -C /usr/local -xzf go$(GO_VERSION).$(OS)-$(ARCH).tar.gz
install-nodejs: install-nodejs: