Skip to content

Commit f392fc4

Browse files
committed
alarmcn/throne: sync with archlinuxcn/throne
1 parent 7b76fc1 commit f392fc4

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

alarmcn/throne/PKGBUILD

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pkgver=1.0.13
77
pkgrel=1
88
pkgdesc="Qt based cross-platform GUI proxy configuration manager (backend: sing-box)"
99
arch=('x86_64' 'aarch64' 'riscv64')
10-
url="https://github.com/throneproj/${pkgname}"
10+
url="https://throneproj.github.io"
1111
license=('GPL-3.0-or-later')
1212
depends=('qt6-base' 'qt6-charts')
1313
makedepends=('cmake' 'go' 'qt6-tools' 'protobuf' 'vulkan-headers')
@@ -18,7 +18,7 @@ optdepends=(
1818
conflicts=('nekoray')
1919
replaces=('nekoray')
2020
source=(
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

4545
build() {
@@ -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

7071
package() {
@@ -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

Comments
 (0)