Skip to content

Commit 7e78e51

Browse files
committed
throne-git: sync changes with archlinuxcn/throne
1 parent ac35768 commit 7e78e51

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

archlinuxcn/throne-git/PKGBUILD

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ prepare() {
4242
export GOBIN="${srcdir}/bin"
4343
export PATH="${PATH}:${GOBIN}"
4444
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
45-
go install github.com/chai2010/protorpc/protoc-gen-protorpc@latest
45+
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
4646

4747
cd gen
48-
protoc -I . --go_out=. --protorpc_out=. libcore.proto
48+
protoc -I . --go_out=. --go-grpc_out=. libcore.proto
4949
}
5050

5151
build() {
@@ -67,10 +67,10 @@ build() {
6767
go build -o ../../build/ \
6868
-buildmode=pie \
6969
-trimpath \
70-
-ldflags "-linkmode=external -w -s -X 'github.com/sagernet/sing-box/constant.Version=${VERSION_SINGBOX}'" \
70+
-ldflags "-linkmode=external -w -s -X 'github.com/sagernet/sing-box/constant.Version=${VERSION_SINGBOX}' -X 'internal/godebug.defaultGODEBUG=multipathtcp=0' -checklinkname=0" \
7171
-mod=readonly \
7272
-modcacherw \
73-
-tags "with_clash_api,with_gvisor,with_quic,with_wireguard,with_utls,with_dhcp,with_tailscale"
73+
-tags "with_clash_api,with_gvisor,with_quic,with_wireguard,with_utls,with_dhcp,with_tailscale,badlinkname,tfogo_checklinkname0"
7474
}
7575

7676
package() {
@@ -79,5 +79,5 @@ package() {
7979

8080
cd "${_srcname}/"
8181
install -Dm644 "res/public/${_srcname}.png" -t "${pkgdir}/usr/share/pixmaps/"
82-
install -Dm755 build/{Core,Throne} -t "${pkgdir}/usr/lib/${_pkgname}/"
82+
install -Dm755 build/Throne{,Core} -t "${pkgdir}/usr/lib/${_pkgname}/"
8383
}

0 commit comments

Comments
 (0)