Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 include /usr/share/dpkg/pkg-info.mk
3 export DH_GOLANG_INSTALL_EXTRA := man/man1 shell
4
5 %:
6 dh $@ --builddirectory=debian/_build
7
8 # we are not using the Makefile for build. hence the FZF_VERSION and FZF_REVISION are not used.
9 execute_before_dh_auto_configure:
10 cp main.go main.go.bak
11 sed -e '/^var version =/s@"[0-9.]*"@"$(DEB_VERSION_UPSTREAM)"@' \
12 -e '/^var revision =/s@"devel"@"debian"@' -i main.go
13
14 override_dh_auto_install:
15 FZF_VERSION=$(DEB_VERSION_UPSTREAM) \
16 FZF_REVISION=debian \
17 dh_auto_install -- --no-source
18
19 override_dh_compress:
20 dh_compress -Xkey-bindings -Xcompletion -Xfzf.vim
21
22 override_dh_auto_clean:
23 -mv main.go.bak main.go
24 dh_auto_clean