blob: 8de4f25afe996c14bde588fb47e3789ee5854808 (
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
|
# Maintainer: Mike Kazantsev <mk.fraggod@gmail.com>
pkgname=netatop-bpf-git
pkgver=1
pkgrel=1
pkgdesc="Userspace BPF loader/daemon to allow atop to gather per-process network stats."
arch=(x86_64)
url=https://github.com/bytedance/netatop-bpf
license=(MIT)
depends=(atop)
makedepends=(git clang llvm)
source=($pkgname::git+$url)
b2sums=(SKIP)
pkgver() {
cd $pkgname
printf "%s.%s.$pkgrel" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd $pkgname
git submodule update --init --recursive
}
build() {
cd $pkgname
make
}
package() {
cd $pkgname
make SBINPATH=/usr/bin SYSDPATH=/usr/lib/systemd/system DESTDIR="$pkgdir" install
}
|