blob: aefac15f0486ae1429155d588fdb8f227bf9e489 (
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
|
# Maintainer: Integral <integral@member.fsf.org>
# Maintainer: cubercsl <2014cais01 at gmail dot com>
pkgname=daed
pkgver=0.8.0
pkgrel=1
pkgdesc="A modern dashboard for dae, bundled with dae-wing (backend API server) and dae (core)."
arch=('x86_64' 'aarch64')
url="https://github.com/daeuniverse/${pkgname}"
license=('AGPL-3.0-or-later AND MIT')
makedepends=('pnpm' 'clang' 'go')
provides=('dae')
conflicts=('dae')
source=("${pkgname}-${pkgver}.zip::https://github.com/daeuniverse/${pkgname}/releases/download/v${pkgver}/${pkgname}-full-src.zip")
sha512sums=('d6d7e09956ed89149fa7ba52641c738559d4b69200d76f45184fa48b64105a11d355e3678712a4f79810765e119981c976c27e7ec8a7d6c31165f3db1d52d5c6')
install="${pkgname}.install"
options=(!debug)
build() {
export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
export CFLAGS="-fno-stack-protector"
sed -i 's/git rev-parse --short HEAD/echo/' vite.config.ts
make VERSION="${pkgver}"
}
package() {
depends=(
v2ray-geoip
v2ray-domain-list-community
)
install -vDm755 "${pkgname}" -t "${pkgdir}/usr/bin/"
install -vDm644 "install/${pkgname}.service" -t "${pkgdir}/usr/lib/systemd/system/"
install -vDm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
install -d "${pkgdir}/etc/daed/"
install -d "${pkgdir}/usr/share/daed/"
ln -vs "/usr/share/v2ray/geoip.dat" "${pkgdir}/usr/share/daed/geoip.dat"
ln -vs "/usr/share/v2ray/geosite.dat" "${pkgdir}/usr/share/daed/geosite.dat"
}
|