rules 438 B

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