github.com/imannamdari/v2ray-core/v5@v5.0.5/release/debian/rules (about) 1 #!/usr/bin/make -f 2 3 include /usr/share/dpkg/default.mk 4 5 BUILDDIR=_build 6 7 %: 8 dh $@ --builddirectory=$(BUILDDIR) --buildsystem=golang 9 10 execute_after_dh_auto_configure: 11 go mod vendor 12 cp -r vendor/* _build/src 13 14 override_dh_auto_build: 15 DH_GOPKG="github.com/imannamdari/v2ray-core/v5/main" dh_auto_build -- -ldflags "-s -w" 16 cd $(BUILDDIR); mv bin/main bin/v2ray 17 18 override_dh_auto_install: 19 dh_auto_install -- --no-source 20 21 override_dh_auto_test: