Install this version:
emerge -a =net-proxy/flclash-bin-0.8.97
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-proxy/flclash-bin-0.8.97
Or alternatively:
emerge --autounmask-write -a =net-proxy/flclash-bin-0.8.97
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop unpacker xdg
DESCRIPTION="A multi-platform proxy client based on ClashMeta"
HOMEPAGE="https://github.com/chen08209/FlClash"
SRC_URI="
amd64? ( https://github.com/chen08209/FlClash/releases/download/v${PV}/FlClash-${PV}-linux-amd64.deb )
arm64? ( https://github.com/chen08209/FlClash/releases/download/v${PV}/FlClash-${PV}-linux-arm64.deb )
"
S="${WORKDIR}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
BDEPEND="dev-util/patchelf"
RDEPEND="
dev-libs/libayatana-appindicator
sys-auth/polkit
x11-apps/xmessage
x11-libs/libX11
x11-libs/libXmu
virtual/jdk
"
QA_PRESTRIPPED="
/opt/FlClash/FlClashCore
/opt/FlClash/lib/libapp.so
/opt/FlClash/lib/librust_api.so
/opt/FlClash/lib/libflutter_linux_gtk.so
"
src_prepare() {
default
# upstream builds libdartjni.so against a Debian JVM path
patchelf --set-rpath "${EPREFIX}/etc/java-config-2/current-system-vm/lib/server" \
opt/FlClash/lib/libdartjni.so || die
}
src_install() {
domenu usr/share/applications/FlClash.desktop
doicon -s 128 usr/share/icons/hicolor/128x128/apps/FlClash.png
doicon -s 256 usr/share/icons/hicolor/256x256/apps/FlClash.png
insinto /opt/FlClash
doins opt/FlClash/FlClashCore
doins opt/FlClash/FlClash
doins opt/FlClash/FlClashHelperService
doins opt/FlClash/manifest.json
doins -r opt/FlClash/lib
doins -r opt/FlClash/data
fperms +x /opt/FlClash/FlClashCore
fperms +x /opt/FlClash/FlClash
fperms +x /opt/FlClash/FlClashHelperService
# the helper verifies FlClashCore against the sha256 in manifest.json
dostrip -x /opt/FlClash/FlClashCore
dosym ../../opt/FlClash/FlClash /usr/bin/FlClash
}
pkg_postinst() {
xdg_pkg_postinst
elog "FlClashHelperService installs a root systemd unit on first use."
elog "Run 'systemctl disable --now flclash-helper.service' before unmerging."
}
dev-libs/libayatana-appindicator sys-auth/polkit x11-apps/xmessage x11-libs/libX11 x11-libs/libXmu virtual/jdk
dev-util/patchelf
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | FlClash-0.8.97-linux-amd64.deb | 43476502 bytes | https://github.com/chen08209/FlClash/releases/download/v0.8.97/FlClash-0.8.97-linux-amd64.deb |
| DIST | FlClash-0.8.97-linux-arm64.deb | 40605904 bytes | https://github.com/chen08209/FlClash/releases/download/v0.8.97/FlClash-0.8.97-linux-arm64.deb |