blob: c2d02bc9c0b8ae0b23c17fbfc2941d5ee6ea61a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Maintainer: ntr5uki <hzy_bme@pku.edu.cn>
pkgname=mihomo-webui-config
pkgver=0.1.0
pkgrel=7
pkgdesc="Mihomo and MetaCubeXD integration with safe subscription updates"
arch=('any')
url="https://github.com/ntr5uki/mihomo-config-setup"
license=('MIT')
depends=(
'mihomo-bin'
'metacubexd-bin'
'clash-geoip'
'python'
'python-yaml'
'sudo'
)
optdepends=(
'subconverter-bin: convert raw URI or Base64 subscriptions locally'
)
install=mihomo-webui-config.install
source=(
'LICENSE'
'mihomo-subscription'
'mihomo-webui-setup'
'config.base.yaml'
'subscriptions.example.yaml'
'secrets.env.example'
'mihomo-subscription-update.service'
'mihomo-subscription-update.timer'
'mihomo-webui.conf'
)
sha256sums=('5d0b23f5be4daaf82ce9c9ff07f371065c62c61b69d34d2c1ad73022b18ddcd2'
'4e5324f39b3946f806009200d38f4f88cbb8549c81e2fd43bdaf15bcc1245ae3'
'939fe9158e4fcc5897a5abcf4c317e59f3c3b6cbb71cf1f4d5d0339e2f85cb28'
'1d2c45df98e8e25c7398c8139ddd4e64c5d32d995c299d9c813cb957093e5fa5'
'ea010298e6d437ae5a5bcde54e0476282495550c7e1cbacde19d7bd5aeff6bcf'
'27d2654ebd1699218b5a110b858b8d0325e37f4d328b47a8fae39e0668a24e03'
'7f2779bdb39ad7e247eaebaba530ec94adf35cce20080b7adce678f5579154cd'
'8eb6ed809c04224b065b65b2458b60a6e60abcc0f2e1d9cbd168f091963e95d7'
'74ef8f96495a89ba648058d0a45f1cfb6253f3f7f74a3c426474b1a9a61e680a')
package() {
install -Dm755 \
"$srcdir/mihomo-webui-setup" \
"$pkgdir/usr/bin/mihomo-webui-setup"
install -Dm755 \
"$srcdir/mihomo-subscription" \
"$pkgdir/usr/bin/mihomo-subscription"
install -Dm644 \
"$srcdir/config.base.yaml" \
"$pkgdir/usr/share/$pkgname/config.base.yaml"
install -Dm644 \
"$srcdir/subscriptions.example.yaml" \
"$pkgdir/usr/share/$pkgname/subscriptions.example.yaml"
install -Dm644 \
"$srcdir/secrets.env.example" \
"$pkgdir/usr/share/$pkgname/secrets.env.example"
install -Dm644 \
"$srcdir/mihomo-subscription-update.service" \
"$pkgdir/usr/lib/systemd/system/mihomo-subscription-update.service"
install -Dm644 \
"$srcdir/mihomo-subscription-update.timer" \
"$pkgdir/usr/lib/systemd/system/mihomo-subscription-update.timer"
install -Dm644 \
"$srcdir/mihomo-webui.conf" \
"$pkgdir/usr/lib/systemd/system/mihomo.service.d/10-webui.conf"
install -dm755 "$pkgdir/etc/mihomo"
ln -s /etc/clash/Country.mmdb "$pkgdir/etc/mihomo/Country.mmdb"
install -Dm644 \
"$srcdir/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|