blob: bad57d621e38a78a142fe65675b690855ede77b3 (
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
|
pkgname=dae-bin-x64-v2
pkgver=0.7.0
pkgrel=3
pkgdesc="A Linux lightweight and high-performance transparent proxy solution based on eBPF."
arch=('x86_64')
url="https://github.com/daeuniverse/dae"
license=('AGPL')
depends=(
'glibc'
# 'v2ray-geoip'
# 'v2ray-domain-list-community'
)
provides=("dae")
conflicts=("dae")
backup=("etc/dae/config.dae")
source=("${url}/releases/download/v${pkgver}/dae-linux-x86_64_v2_sse.zip")
sha256sums=('842be8818005eee7d5a98683bf4fd7f6cd58dc2f2e4e8399b46ea0fa6fded596')
prepare() {
if !(/lib/ld-linux-x86-64.so.2 --help | grep "x86-64-v2 (supported, searched)" &> /dev/null); then
echo "Your CPU does NOT support x86-64-v2!"
echo "Exiting..."
exit 1
fi
}
package() {
install -Dm755 "dae-linux-x86_64_v2_sse" "${pkgdir}/usr/bin/dae"
install -Dm644 "dae.service" -t "${pkgdir}/usr/lib/systemd/system/"
# install -Dm640 "example.dae" "${pkgdir}/etc/dae/config.dae"
install -Dm644 "example.dae" "${pkgdir}/etc/dae/config.dea.example"
mkdir -p "${pkgdir}/usr/share/dae/"
install -Dm644 geoip.dat "${pkgdir}/usr/share/dae/geoip.dat"
install -Dm644 geosite.dat "${pkgdir}/usr/share/dae/geosite.dat"
}
|