initial commit

This commit is contained in:
le0nxx 2026-02-22 00:11:56 +08:00
commit 5360ea8304
2 changed files with 70 additions and 0 deletions

22
.SRCINFO Normal file
View file

@ -0,0 +1,22 @@
pkgbase = dae-kix-git
pkgdesc = 由 kix fork 的 dae 分支版本
pkgver = r4baacef
pkgrel = 1
url = https://github.com/olicesx/dae
arch = x86_64
license = AGPL-3.0-or-later
makedepends = git
makedepends = go
makedepends = base-devel
makedepends = clang
makedepends = llvm
makedepends = libbpf
makedepends = linux-headers
makedepends = linux-api-headers
optdepends = v2ray-geoip: geoip database
optdepends = v2ray-domain-list-community: domain rules
options = !debug
source = dae-kix-git::git+https://github.com/olicesx/dae.git
sha256sums = SKIP
pkgname = dae-kix-git

48
PKGBUILD Normal file
View file

@ -0,0 +1,48 @@
# Maintainer: le0nxx <leonlawxx@outlook.sg>
pkgname=dae-kix-git
pkgver=r4baacef
pkgrel=1
pkgdesc="由 kix fork 的 dae 分支版本"
arch=('x86_64')
url="https://github.com/olicesx/dae"
license=('AGPL-3.0-or-later')
depends=()
optdepends=(
'v2ray-geoip: geoip database'
'v2ray-domain-list-community: domain rules'
)
makedepends=('git' 'go' 'base-devel' 'clang' 'llvm' 'libbpf' 'linux-headers' 'linux-api-headers')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
options=('!debug')
pkgver() {
cd "$pkgname"
local desc
if desc=$(git describe --long --tags 2>/dev/null); then
echo "$desc" | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
else
# no tags present, use abbreviated commit and date
echo "r$(git rev-parse --short HEAD)"
fi
}
prepare() {
cd "$pkgname"
git submodule update --init --recursive
}
build() {
cd "$pkgname"
local safe_cflags
safe_cflags="${CFLAGS//-march=[^ ]*/}"
safe_cflags="${safe_cflags//-mtune=[^ ]*/}"
CFLAGS="$safe_cflags" make
}
package() {
cd "$pkgname"
install -Dm755 dae "$pkgdir/usr/bin/dae"
install -Dm644 "install/dae.service" "$pkgdir/usr/lib/systemd/system/dae.service"
install -Dm644 "example.dae" "$pkgdir/etc/dae/example.dae"
}