@@ -7,7 +7,7 @@ pkgver=1.0.13
77pkgrel=1
88pkgdesc=" Qt based cross-platform GUI proxy configuration manager (backend: sing-box)"
99arch=(' x86_64' ' aarch64' ' riscv64' )
10- url=" https://github.com/throneproj/ ${pkgname} "
10+ url=" https://throneproj. github.io "
1111license=(' GPL-3.0-or-later' )
1212depends=(' qt6-base' ' qt6-charts' )
1313makedepends=(' cmake' ' go' ' qt6-tools' ' protobuf' ' vulkan-headers' )
@@ -18,7 +18,7 @@ optdepends=(
1818conflicts=(' nekoray' )
1919replaces=(' nekoray' )
2020source=(
21- " ${pkgname} -${pkgver} .tar.gz::${url } /archive/refs/tags /${pkgver} .tar.gz"
21+ " ${pkgname} -${pkgver} .tar.gz::https://github.com/throneproj/ ${_srcname } /archive/${pkgver} .tar.gz"
2222 " https://raw.githubusercontent.com/throneproj/routeprofiles/rule-set/srslist.h"
2323 " ${pkgname} .sh"
2424 " ${_srcname} .desktop"
@@ -36,10 +36,10 @@ prepare() {
3636 export GOBIN=" ${srcdir} /bin"
3737 export PATH=" ${PATH} :${GOBIN} "
3838 go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
39- go install github.com/chai2010/protorpc /protoc-gen-protorpc @latest
39+ go install google.golang.org/grpc/cmd /protoc-gen-go-grpc @latest
4040
4141 cd gen
42- protoc -I . --go_out=. --protorpc_out =. libcore.proto
42+ protoc -I . --go_out=. --go-grpc_out =. libcore.proto
4343}
4444
4545build () {
@@ -57,14 +57,15 @@ build() {
5757 export CGO_LDFLAGS=" ${LDFLAGS} "
5858
5959 cd core/server
60+
6061 VERSION_SINGBOX=$( go list -m -f ' {{.Version}}' github.com/sagernet/sing-box)
6162 go build -o ../../build/ \
6263 -buildmode=pie \
6364 -trimpath \
64- -ldflags " -linkmode=external -w -s -X 'github.com/sagernet/sing-box/constant.Version=${VERSION_SINGBOX} '" \
65+ -ldflags " -linkmode=external -w -s -X 'github.com/sagernet/sing-box/constant.Version=${VERSION_SINGBOX} ' -X 'internal/godebug.defaultGODEBUG=multipathtcp=0' -checklinkname=0 " \
6566 -mod=readonly \
6667 -modcacherw \
67- -tags " with_clash_api,with_gvisor,with_quic,with_wireguard,with_utls,with_dhcp,with_tailscale"
68+ -tags " with_clash_api,with_gvisor,with_quic,with_wireguard,with_utls,with_dhcp,with_tailscale,badlinkname,tfogo_checklinkname0 "
6869}
6970
7071package () {
@@ -73,5 +74,5 @@ package() {
7374
7475 cd " ${_srcname} -${pkgver} /"
7576 install -Dm644 " res/public/${_srcname} .png" -t " ${pkgdir} /usr/share/pixmaps/"
76- install -Dm755 build/{Core,Throne } -t " ${pkgdir} /usr/lib/${pkgname} /"
77+ install -Dm755 build/Throne{,Core } -t " ${pkgdir} /usr/lib/${pkgname} /"
7778}
0 commit comments