blob: 0b54f994b347c7f3b304406c37e4a9f0b63e89bd (
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
|
# Maintainer: myuki <mioki dot cinnamon650 at 8shield dot net>
# Contributor: Dct Mei <dctxmei@yandex.com>
pkgname=yacd-meta
_pkgname=Yacd-meta
pkgver=0.4.0
pkgrel=2
pkgdesc="Yet Another Clash Dashboard (MetaCubeX fork of yacd)"
arch=('any')
url="https://github.com/MetaCubeX/Yacd-meta"
license=('MIT')
install=yacd-meta.install
makedepends=('bun')
optdepends=('mihomo: Another Clash Kernel by MetaCubeX')
provides=("${pkgname}")
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=('2d75504cad5fce85a9403829660c82611a9dd89deb220035a18c7643640f2b84c95a0e38b697f89180f65b8da702131a720755e859806f14130661cc764c70b4')
prepare() {
cd "${_pkgname}-${pkgver}"
bun install --frozen-lockfile --ignore-scripts --cache-dir="${srcdir}/.bun-cache"
}
build() {
cd "${_pkgname}-${pkgver}"
bun run --no-install build
}
package() {
cd "${_pkgname}-${pkgver}"
# The project does not have a LICENSE file in the repository root
# even though package.json specifies MIT
cd public
find . -type f -exec install -Dm644 {} "${pkgdir}/usr/share/${pkgname}/"{} \;
}
|