blob: 193b48881049af3db26a8da6d298f29de852e9ab (
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
|
# Maintainer: Daniel Xu <dxu@dxuuu.xyz>
pkgname=below-git
_pkgname=below
pkgver=v0.6.3.r25.g43f24d32
pkgrel=1
pkgdesc="An interactive resource monitor for modern Linux systems"
arch=('x86_64')
url="https://github.com/facebookincubator/below/"
license=('Apache-2.0')
provides=("$_pkgname")
conflicts=("$_pkgname")
makedepends=('cargo' 'git' 'libbpf' 'clang')
depends=('zlib' 'libelf' 'ncurses')
source=("$pkgname::git+https://github.com/facebookincubator/below.git")
sha1sums=('SKIP')
build() {
cd "$pkgname"
RUSTUP_TOOLCHAIN=stable cargo build --release --target-dir=target
}
pkgver() {
cd "$pkgname"
git describe --long --tag | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "$pkgname"
install -Dm 755 target/release/${_pkgname} -t "${pkgdir}/usr/bin"
install -Dm 644 etc/below.service -t "${pkgdir}/etc/systemd/system"
}
|