| 1 |
|
| 2 |
include /usr/share/dpkg/pkg-info.mk |
| 3 |
|
| 4 |
export DEB_BUILD_MAINT_OPTIONSscip-debian debian dasel 3.11.2-2 dasel/rules/DEB_BUILD_MAINT_OPTIONS. = hardening=+all |
| 5 |
|
| 6 |
VERSIONscip-debian debian dasel 3.11.2-2 dasel/rules/VERSION. := $(DEB_VERSIONscip-debian debian dasel 3.11.2-2 dasel/rules/DEB_VERSION.) |
| 7 |
GO_FLAGSscip-debian debian dasel 3.11.2-2 dasel/rules/GO_FLAGS. = -ldflags "-X 'github.com/tomwright/dasel/internal.Version=v$(VERSION)'" |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
ifeq (,$(filterscip-debian debian dasel 3.11.2-2 dasel/rules/filter. $(DEB_HOST_ARCHscip-debian debian dasel 3.11.2-2 dasel/rules/DEB_HOST_ARCH.),mips mipsel mips64el)) |
| 12 |
GO_FLAGS += -buildmode=pie |
| 13 |
endif |
| 14 |
|
| 15 |
%scip-debian debian dasel 3.11.2-2 dasel/rules/`%`().: |
| 16 |
dh $@ --builddirectory=_build --buildsystem=golang |
| 17 |
|
| 18 |
override_dh_auto_buildscip-debian debian dasel 3.11.2-2 dasel/rules/override_dh_auto_build().: |
| 19 |
dh_auto_buildscip-debian debian debhelper . dh_auto_build(). -- $(GO_FLAGSscip-debian debian dasel 3.11.2-2 dasel/rules/GO_FLAGS.) |
| 20 |
|
| 21 |
execute_before_dh_installscip-debian debian dasel 3.11.2-2 dasel/rules/execute_before_dh_install().: |
| 22 |
mkdir -p debian/tmp/completions |
| 23 |
_build/bin/dasel completion zsh > debian/tmp/completions/_dasel |
| 24 |
_build/bin/dasel completion bash > debian/tmp/completions/dasel |
| 25 |
_build/bin/dasel completion fish > debian/tmp/completions/dasel.fish |
| 26 |
|
| 27 |
ifeq (,$(filterscip-debian debian dasel 3.11.2-2 dasel/rules/filter. nodoc,$(DEB_BUILD_OPTIONSscip-debian debian dasel 3.11.2-2 dasel/rules/DEB_BUILD_OPTIONS.))) |
| 28 |
execute_before_dh_installmanscip-debian debian dasel 3.11.2-2 dasel/rules/execute_before_dh_installman().: |
| 29 |
_build/bin/dasel man > debian/tmp/dasel.1 |
| 30 |
endif |