Files
v2fly/release/debian/rules
T

22 lines
438 B
Makefile
Raw Normal View History

2020-11-08 11:10:13 +08:00
#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
BUILDDIR=_build
%:
2021-09-21 06:59:21 +08:00
dh $@ --builddirectory=$(BUILDDIR) --buildsystem=golang
2020-11-08 11:10:13 +08:00
execute_after_dh_auto_configure:
go mod vendor
cp -r vendor/* _build/src
override_dh_auto_build:
2022-01-02 15:16:23 +00:00
DH_GOPKG="github.com/v2fly/v2ray-core/v5/main" dh_auto_build -- -ldflags "-s -w"
2020-11-08 11:10:13 +08:00
cd $(BUILDDIR); mv bin/main bin/v2ray
override_dh_auto_install:
dh_auto_install -- --no-source
override_dh_auto_test: