diff --git a/package/diy/clash-meta-core/Makefile b/package/diy/clash-meta-core/Makefile new file mode 100644 index 0000000000..6da7a609d1 --- /dev/null +++ b/package/diy/clash-meta-core/Makefile @@ -0,0 +1,42 @@ +# +# Copyright (C) 2024 MapleOS +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=clash-meta-core +PKG_VERSION:=1.19.28 +PKG_RELEASE:=1 + +PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/clash-meta-core + SECTION:=net + CATEGORY:=Network + TITLE:=Clash Meta core (mihomo) for OpenClash + URL:=https://github.com/MetaCubeX/mihomo + DEPENDS:=+luci-app-openclash + PKGARCH:=aarch64_generic +endef + +define Package/clash-meta-core/description + Pre-built mihomo (Clash Meta) ARM64 kernel for OpenClash. + Installed to /etc/openclash/core/clash_meta so it survives firmware reflash. +endef + +define Build/Prepare +endef + +define Build/Configure +endef + +define Build/Compile +endef + +define Package/clash-meta-core/install + $(INSTALL_DIR) $(1)/etc/openclash/core + $(INSTALL_BIN) ./files/etc/openclash/core/clash_meta $(1)/etc/openclash/core/clash_meta +endef + +$(eval $(call BuildPackage,clash-meta-core)) diff --git a/package/diy/clash-meta-core/files/etc/openclash/core/clash_meta b/package/diy/clash-meta-core/files/etc/openclash/core/clash_meta new file mode 100755 index 0000000000..05abcba85f Binary files /dev/null and b/package/diy/clash-meta-core/files/etc/openclash/core/clash_meta differ diff --git a/r6c.config b/r6c.config index 9e8aa14ad2..7897d804aa 100644 --- a/r6c.config +++ b/r6c.config @@ -121,6 +121,7 @@ CONFIG_PACKAGE_luci-app-aria2=y CONFIG_PACKAGE_luci-app-dockerman=y CONFIG_PACKAGE_luci-app-frpc=y CONFIG_PACKAGE_luci-app-openclash=y +CONFIG_PACKAGE_clash-meta-core=y # CONFIG_PACKAGE_luci-app-transmission is not set CONFIG_PACKAGE_luci-app-ttyd=y CONFIG_PACKAGE_luci-app-upnp=y