blob: 67d590b40d6cf78fe6e6b83ba17b5a61073ee391 (
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
|
# Maintainer: devome <evinedeng@hotmail.com>
pkgname="metacubexd"
pkgver=1.273.1
pkgrel=1
pkgdesc="Mihomo Dashboard, The Official One, XD"
arch=("any")
url="https://github.com/MetaCubeX/${pkgname}"
license=("MIT")
provides=("${pkgname}")
conflicts=("${pkgname}")
makedepends=("nodejs" "pnpm")
optdepends=('mihomo: Another Clash Kernel by MetaCubeX'
'sing-box: The universal proxy platform')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('a578d6b86cc49d141940c850ca6989d2248baec3d32995bcf7236d9d854985d9')
build() {
cd "${pkgname}-${pkgver}"
pnpm install
NUXT_APP_BASE_URL='./' pnpm --filter @metacubexd/ui generate
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd "packages/ui/.output/public"
find . -type f -exec install -Dm644 {} "${pkgdir}/usr/share/${pkgname}/"{} \;
}
|