summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChenx Dust2024-01-04 15:00:35 +0800
committerChenx Dust2024-01-04 15:00:35 +0800
commit7b7175050181606b666097ff8a16e5952b604c75 (patch)
treee834bb2195022d8942832ac3f3a712c87b62ac32
parent9d94cf3121cd8e2ba311d6bca620079906816831 (diff)
downloadaur-7b7175050181606b666097ff8a16e5952b604c75.tar.gz
Move to mihomo
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD28
-rw-r--r--clash-meta-bin.install12
3 files changed, 18 insertions, 41 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bda7e3acb65c..41e1d958d0d1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = clash-meta-bin
- pkgdesc = Another Clash Kernel by MetaCubeX
- pkgver = 1.16.0
- pkgrel = 2
+ pkgdesc = Provide a soft link for mihomo, keeping compatibility with the obsolete Clash.Meta.
+ pkgver = 1.18.0
+ pkgrel = 1
url = https://github.com/MetaCubeX/Clash.Meta
install = clash-meta-bin.install
arch = i686
@@ -12,6 +12,7 @@ pkgbase = clash-meta-bin
arch = aarch64
license = GPL3
depends = glibc
+ depends = mihomo-bin
provides = clash-meta
conflicts = clash-meta
backup = etc/clash-meta/config.yaml
@@ -21,17 +22,5 @@ pkgbase = clash-meta-bin
sha256sums = 9e8a28e22c159d7d70c258b65f47bc734543e54cb0cd3957ce19349aca145af8
sha256sums = 29c73ac66d6fe60bea4359ac1857e3452f26c2af792efd8dd16d558462472efb
sha256sums = c4af03523b8006d206440163406ee9b4de1a10bb5023fb3194490b8225a5e481
- source_i686 = clash-meta-bin-i686-1.16.0.gz::https://github.com/MetaCubeX/Clash.Meta/releases/download/v1.16.0/Clash.Meta-linux-386-v1.16.0.gz
- sha256sums_i686 = edc34b297e17f6a274b734f1a47f817e5ceb3cb9e966a17466c30a62e9ba0578
- source_x86_64 = clash-meta-bin-x86_64-1.16.0.gz::https://github.com/MetaCubeX/Clash.Meta/releases/download/v1.16.0/Clash.Meta-linux-amd64-compatible-v1.16.0.gz
- sha256sums_x86_64 = ed3bd776e2f9edb0de03430f503dfde2d0fb966b7a97904826633822733e9901
- source_arm = clash-meta-bin-arm-1.16.0.gz::https://github.com/MetaCubeX/Clash.Meta/releases/download/v1.16.0/Clash.Meta-linux-armv5-v1.16.0.gz
- sha256sums_arm = dd4e7871fbc1cec2199e4e4619de2bea339d1b4e55e8d2f46e84612b8bd2b370
- source_armv6h = clash-meta-bin-armv6h-1.16.0.gz::https://github.com/MetaCubeX/Clash.Meta/releases/download/v1.16.0/Clash.Meta-linux-armv6-v1.16.0.gz
- sha256sums_armv6h = d7e19035a662eb5dca39381c63174eb1578b9cdc056dc6fe42b432465a80f9af
- source_armv7h = clash-meta-bin-armv7h-1.16.0.gz::https://github.com/MetaCubeX/Clash.Meta/releases/download/v1.16.0/Clash.Meta-linux-armv7-v1.16.0.gz
- sha256sums_armv7h = 09c971bff85435fe18ec458a19945ad0560ffbe7fa4ff9affacc712adc2b3cef
- source_aarch64 = clash-meta-bin-aarch64-1.16.0.gz::https://github.com/MetaCubeX/Clash.Meta/releases/download/v1.16.0/Clash.Meta-linux-arm64-v1.16.0.gz
- sha256sums_aarch64 = 2976293bdcc44b428a5d902a6b493f76c197cf7f84046a7f5ee456e7103c2adf
pkgname = clash-meta-bin
diff --git a/PKGBUILD b/PKGBUILD
index d257337c33c5..6a09134f1fad 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,16 @@
-# Maintainer: pallxk <aur@pallxk.com>
+# Maintainer: chenx_dust <chenx_dust@outlook.com>
+# Contributor: pallxk <aur@pallxk.com>
# Contributor: adiprasetya <ignilium.inc@gmail.com>
-# Contributor: chenx_dust <chenx_dust@outlook.com>
pkgname=clash-meta-bin
-pkgver=1.16.0
-pkgrel=2
-pkgdesc="Another Clash Kernel by MetaCubeX"
+pkgver=1.18.0
+pkgrel=1
+pkgdesc="Provide a soft link for mihomo, keeping compatibility with the obsolete Clash.Meta."
arch=("i686" "x86_64" "arm" "armv6h" "armv7h" "aarch64")
url="https://github.com/MetaCubeX/Clash.Meta"
license=("GPL3")
groups=()
-depends=("glibc")
+depends=("glibc" "mihomo-bin")
makedepends=()
checkdepends=()
optdepends=()
@@ -24,27 +24,17 @@ changelog=
source=("clash-meta.service"
"clash-meta@.service"
"config.yaml")
-source_i686=("${pkgname}-i686-${pkgver}.gz::${url}/releases/download/v${pkgver}/Clash.Meta-linux-386-v${pkgver}.gz")
-source_x86_64=("${pkgname}-x86_64-${pkgver}.gz::${url}/releases/download/v${pkgver}/Clash.Meta-linux-amd64-compatible-v${pkgver}.gz")
-source_arm=("${pkgname}-arm-${pkgver}.gz::${url}/releases/download/v${pkgver}/Clash.Meta-linux-armv5-v${pkgver}.gz")
-source_armv6h=("${pkgname}-armv6h-${pkgver}.gz::${url}/releases/download/v${pkgver}/Clash.Meta-linux-armv6-v${pkgver}.gz")
-source_armv7h=("${pkgname}-armv7h-${pkgver}.gz::${url}/releases/download/v${pkgver}/Clash.Meta-linux-armv7-v${pkgver}.gz")
-source_aarch64=("${pkgname}-aarch64-${pkgver}.gz::${url}/releases/download/v${pkgver}/Clash.Meta-linux-arm64-v${pkgver}.gz")
sha256sums=('9e8a28e22c159d7d70c258b65f47bc734543e54cb0cd3957ce19349aca145af8'
'29c73ac66d6fe60bea4359ac1857e3452f26c2af792efd8dd16d558462472efb'
'c4af03523b8006d206440163406ee9b4de1a10bb5023fb3194490b8225a5e481')
-sha256sums_i686=('edc34b297e17f6a274b734f1a47f817e5ceb3cb9e966a17466c30a62e9ba0578')
-sha256sums_x86_64=('ed3bd776e2f9edb0de03430f503dfde2d0fb966b7a97904826633822733e9901')
-sha256sums_arm=('dd4e7871fbc1cec2199e4e4619de2bea339d1b4e55e8d2f46e84612b8bd2b370')
-sha256sums_armv6h=('d7e19035a662eb5dca39381c63174eb1578b9cdc056dc6fe42b432465a80f9af')
-sha256sums_armv7h=('09c971bff85435fe18ec458a19945ad0560ffbe7fa4ff9affacc712adc2b3cef')
-sha256sums_aarch64=('2976293bdcc44b428a5d902a6b493f76c197cf7f84046a7f5ee456e7103c2adf')
package() {
cd "${srcdir}"
- install -Dm755 "${pkgname}-${CARCH}-${pkgver}" "${pkgdir}/usr/bin/clash-meta"
+ mkdir -p "${pkgdir}/usr/bin"
+ ln -s "/usr/bin/mihomo" "${pkgdir}/usr/bin/clash-meta"
install -Dm644 "config.yaml" "${pkgdir}/etc/clash-meta/config.yaml"
install -Dm644 "clash-meta.service" "${pkgdir}/usr/lib/systemd/system/clash-meta.service"
install -Dm644 "clash-meta@.service" "${pkgdir}/usr/lib/systemd/system/clash-meta@.service"
}
+
diff --git a/clash-meta-bin.install b/clash-meta-bin.install
index 2bcdf3bff98c..36d7085345a7 100644
--- a/clash-meta-bin.install
+++ b/clash-meta-bin.install
@@ -1,12 +1,10 @@
post_install(){
post_upgrade
}
+
post_upgrade(){
- cat << EOF
- This is the core of Clash Meta by MetaCubeX forked from Clash by Dreamacro.
- You can find the manual at https://github.com/Dreamacro/clash/wiki/configuration
- Home directory clash-meta.service at /etc/clash-meta
- User home directory ~/.config/clash by default
-EOF
+ echo -e "\e[93mWarning:\e[0m"
+ echo -e "\e[93mClash.Meta is now replaced by mihomo. This package now only provide symlink to mihomo to keep compatibility.\e[0m"
+ echo -e "\e[93mWe recommend all users to remove this package and install mihomo-bin instead.\e[0m"
+}
-} \ No newline at end of file