blob: 322b4a67f175076ca7996821565f692c0077f67d (
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
|
# Maintainer: Integral <integral@member.fsf.org>
# Maintainer: cubercsl <2014cais01 at gmail dot com>
pkgname=daed-git
_pkgname=${pkgname%-git}
pkgver=0.9.0.r1.g1750dbe
pkgrel=2
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')
depends=('v2ray-geoip' 'v2ray-domain-list-community')
makedepends=('git' 'pnpm' 'clang' 'go')
provides=("${_pkgname}" "dae")
conflicts=("${_pkgname}" "dae")
source=(
"git+${url}.git"
"git+https://github.com/daeuniverse/dae-wing.git"
"git+https://github.com/daeuniverse/dae.git"
"git+https://github.com/daeuniverse/dae_bpf_headers.git"
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
install="${_pkgname}.install"
options=(!debug)
pkgver() {
cd "${_pkgname}/"
git describe --tags --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${_pkgname}/"
git submodule init
git config submodule.wing.url "${srcdir}/dae-wing"
git -c protocol.file.allow=always submodule update
cd wing
git submodule init
git config submodule.dae-core.url "${srcdir}/dae"
git -c protocol.file.allow=always submodule update
cd dae-core
git config submodule.control/kern/headers.url "${srcdir}/dae_bpf_headers"
git config submodule.trace/kern/headers.url "${srcdir}/dae_bpf_headers"
git -c protocol.file.allow=always submodule update
}
build() {
export CFLAGS="-fno-stack-protector"
export CGO_ENABLED=1
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
make -C "${_pkgname}" VERSION="unstable-${pkgver}"
}
package() {
cd "${_pkgname}/"
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}/usr/share/${_pkgname}/
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"
}
|