Package Details: clash-meta 1.18.5-3

Git Clone URL: https://aur.archlinux.org/clash-meta.git (read-only, click to copy)
Package Base: clash-meta
Description: Another Clash Kernel by MetaCubeX
Upstream URL: https://github.com/MetaCubeX/Clash.Meta
Licenses: GPL3
Conflicts: clash-meta
Submitter: sukanka
Maintainer: sukanka (lilac)
Last Packager: lilac
Votes: 7
Popularity: 0.061115
First Submitted: 2022-09-27 05:14 (UTC)
Last Updated: 2024-05-24 12:18 (UTC)

Pinned Comments

sukanka commented on 2023-02-15 01:05 (UTC)

If you want use tun mode, add the following pacman hook.

➜  ~ cat /etc/pacman.d/hooks/clash-meta.hook
[Trigger]
Operation = Install
Operation = Upgrade
Type = Path
Target = usr/bin/clash-meta

[Action]
When = PostTransaction
Exec = /usr/bin/setcap 'cap_net_admin,cap_net_bind_service=+ep' /usr/bin/clash-meta

Latest Comments

1 2 Next › Last »

chitaotao commented on 2024-05-23 15:58 (UTC)

Seems like checksum might be incorrect, my sha265sum for clash-meta-1.18.5.tar.gz is 463f54384a144b63e499db44e3383c7a412a1572809053a42810e4c154b51f5e.

rzhli commented on 2024-03-31 05:50 (UTC)

https://pastebin.com/vpnW1d2i

olingcat commented on 2024-03-26 09:53 (UTC)

现在从零构建会出现

-linkmode requires external (cgo) linking, but cgo is not enabled

这样的错误,应该是依赖了某些需要cgo的包但默认 CGO_ENABLED 未开启,希望排查一下。 相关讨论见 https://aur.archlinux.org/packages/clash-nyanpasu 的评论区。

evilred commented on 2023-12-16 08:30 (UTC)

好像是github改名了?

chust commented on 2023-12-04 06:53 (UTC)

在Clash.Meta更名成mihomo后,build()函数里面的ldflags也需要对应更新,现在软件显示的版本号是错误的1.10.0,新的参数: Makefile

zzq commented on 2023-11-24 02:23 (UTC)

Support loongarch.


diff --git a/PKGBUILD b/PKGBUILD
index fe0ca4c..efe5940 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=clash-meta
 pkgver=1.16.0
 pkgrel=4
 pkgdesc="Another Clash Kernel by MetaCubeX"
-arch=("x86_64" 'aarch64')
+arch=("x86_64" 'aarch64' 'loong64')
 url="https://github.com/MetaCubeX/Clash.Meta"
 license=("GPL3")
 depends=('glibc' 'clash-geoip')
@@ -16,16 +16,19 @@ source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz
         "clash-meta@.service"
         "${pkgname}.sysusers"
         "${pkgname}.tmpfiles"
-        "config.yaml")
+        "config.yaml"
+        "loong64.patch")
 sha256sums=('037f926369ac9a0922801f1b0a8e2d79d454e67f6bc2a1e4ca7a52a0a8c641ea'
             'b6b7ce11489a6f6322a41ce840b3f999b1ec88914f8bd6864c220269231bf759'
             'ec4de877464e595124a5f2752c3f4be157adc85ec5f7f8392c0331cb70fc906a'
             '655e8e2edcd82a6bdf2fd12430b7ab6f8e32db8dffce70e7342685a7cc65ebfb'
             '50737592c7bd743fe8f543924034718337477a203fa11ef4272cae496df3769c'
-            '90f7fdacecd5928e37865b4f841517f925c8bedc769f16f7a7a1e89b923f1fb9')
+            '90f7fdacecd5928e37865b4f841517f925c8bedc769f16f7a7a1e89b923f1fb9'
+            'a1d56756c6756d4a1e5133ac5303d4b7a0de1bf1577767026016e81efee54b60')

 build(){
     cd "${srcdir}"/Clash.Meta-${pkgver}
+    patch -p1 < "${srcdir}/loong64.patch"
     BUILDTIME=$(date -u)
     GOOS=linux CGO_ENABLED=0 go build \
     -trimpath \
diff --git a/loong64.patch b/loong64.patch
index e69de29..6e089c5 100644
--- a/loong64.patch
+++ b/loong64.patch
@@ -0,0 +1,36 @@
+diff --git a/component/ebpf/byteorder/byteorder_littleendian.go b/component/ebpf/byteorder/byteorder_littleendian.go
+index 216a5e5..d40f351 100644
+--- a/component/ebpf/byteorder/byteorder_littleendian.go
++++ b/component/ebpf/byteorder/byteorder_littleendian.go
+@@ -1,4 +1,4 @@
+-//go:build 386 || amd64 || amd64p32 || arm || arm64 || mips64le || mips64p32le || mipsle || ppc64le || riscv64
++//go:build 386 || amd64 || amd64p32 || arm || arm64 || mips64le || mips64p32le || mipsle || ppc64le || riscv64 || loong64
+ 
+ package byteorder
+ 
+diff --git a/component/ebpf/redir/bpf_bpfel.go b/component/ebpf/redir/bpf_bpfel.go
+index 936b84e..1fe3454 100644
+--- a/component/ebpf/redir/bpf_bpfel.go
++++ b/component/ebpf/redir/bpf_bpfel.go
+@@ -1,6 +1,6 @@
+ // Code generated by bpf2go; DO NOT EDIT.
+-//go:build 386 || amd64 || amd64p32 || arm || arm64 || mips64le || mips64p32le || mipsle || ppc64le || riscv64
+-// +build 386 amd64 amd64p32 arm arm64 mips64le mips64p32le mipsle ppc64le riscv64
++//go:build 386 || amd64 || amd64p32 || arm || arm64 || mips64le || mips64p32le || mipsle || ppc64le || riscv64 || loong64
++// +build 386 amd64 amd64p32 arm arm64 mips64le mips64p32le mipsle ppc64le riscv64 loong64
+ 
+ package redir
+ 
+diff --git a/component/ebpf/tc/bpf_bpfel.go b/component/ebpf/tc/bpf_bpfel.go
+index 07daba1..4cca0e1 100644
+--- a/component/ebpf/tc/bpf_bpfel.go
++++ b/component/ebpf/tc/bpf_bpfel.go
+@@ -1,6 +1,6 @@
+ // Code generated by bpf2go; DO NOT EDIT.
+-//go:build 386 || amd64 || amd64p32 || arm || arm64 || mips64le || mips64p32le || mipsle || ppc64le || riscv64
+-// +build 386 amd64 amd64p32 arm arm64 mips64le mips64p32le mipsle ppc64le riscv64
++//go:build 386 || amd64 || amd64p32 || arm || arm64 || mips64le || mips64p32le || mipsle || ppc64le || riscv64 || loong64
++// +build 386 amd64 amd64p32 arm arm64 mips64le mips64p32le mipsle ppc64le riscv64 loong64
+ 
+ package tc
+