Welcome to mirror list, hosted at ThFree Co, Russian Federation.

rules « debian - github.com/Z-Bolt/OctoScreen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 55088c605016703f3c792ecd95a04d609636f048 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

export DH_VERBOSE := 1
export DH_GOPKG := github.com/Z-Bolt/OctoScreen
export DH_GOLANG_INSTALL_ALL := 1
export DH_GOLANG_EXCLUDES := vendor
export GOCACHE := $(GOPATH)/pkg

%:
	dh $@ --buildsystem=golang --with=golang,systemd

override_dh_auto_build:
	dh_auto_build -O--buildsystem=golang -O--no-parallel -- \
		--tags $(GO_TAGS) \
		-ldflags "\
			-X $(DH_GOPKG)/ui.Version=$(VERSION) \
			-X $(DH_GOPKG)/ui.Build=$(BUILD_DATE)\
		"

override_dh_golang:
	# The dh_golang is used to add the Built-using field to the deb. This is only for reference.
	# https://github.com/git-lfs/git-lfs/pull/2203/files
	# dh_golang errors out because the go compiler used was not installed via a package. Therefore the step is skipped

override_dh_install:
	mkdir -p $(CURDIR)/debian/octoscreen/opt/octoscreen/
	cp -r styles $(CURDIR)/debian/octoscreen/opt/octoscreen/
	rm -rf $(CURDIR)/debian/octoscreen/usr/share/gocode
	dh_install -XLICENSE

override_dh_auto_test:
	echo "skip no tests"