1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/default.mk
%:
dh $@ --builddirectory=_build --buildsystem=golang --with=golang
override_dh_auto_build:
dh_auto_build -- -ldflags "-X main.version=v$(DEB_VERSION_UPSTREAM) -X main.build=$(SOURCE_DATE_EPOCH) -X main.usageMode=prod"
mkdir -p _build/completions/ _build/manpages/
_build/bin/gen-docs --manpage --path _build/manpages/
GLAB_CONFIG_DIR=debian/tmphome _build/bin/glab completion -s bash > _build/completions/glab
GLAB_CONFIG_DIR=debian/tmphome _build/bin/glab completion -s fish > _build/completions/glab.fish
GLAB_CONFIG_DIR=debian/tmphome _build/bin/glab completion -s zsh > _build/completions/_glab
override_dh_auto_test:
override_dh_auto_install:
rm -f _build/bin/gen-docs
dh_auto_install -- --no-source
|