aboutsummaryrefslogtreecommitdiffstats
path: root/community/zenith/APKBUILD
blob: 14f28dd0616e7b530941ad936baf5ffc6ed4e107 (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=zenith
pkgver=0.13.1
pkgrel=0
pkgdesc="Sort of like htop but with zoom-able charts, CPU, GPU, network, disk usage"
url="https://github.com/bvaisvil/zenith"
# riscv64: couldn't verify - broken CI
# s390x: fails to build nix crate
arch="all !riscv64 !s390x"
license="MIT"
makedepends="
	cargo
	clang-dev
	linux-headers
	llvm-dev
	"
source="https://github.com/bvaisvil/zenith/archive/$pkgver/zenith-$pkgver.tar.gz"
options="!check"  # no tests provided

prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo build --frozen --release
}

package() {
	install -D -m755 target/release/$pkgname -t "$pkgdir"/usr/bin/
	install -D -m644 assets/$pkgname.desktop -t "$pkgdir"/usr/share/applications/
	install -D -m644 assets/$pkgname.png -t "$pkgdir"/usr/share/icons/96x96/apps/
}

sha512sums="
0fc82be23a9ce880fc29485c4cabe6ac23a1b72768055236860540f785269b543c759c980ed4661b43bca623b69d9e060473fd22f1f84116937d52c00c6b22bb  zenith-0.13.1.tar.gz
"