aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hyperfine/APKBUILD
blob: 2ec81df0456c21418109d84e55ddba3ef666261e (plain) (blame)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=hyperfine
pkgver=1.5.0
pkgrel=0
pkgdesc="Command-line benchmarking tool"
url="https://github.com/sharkdp/hyperfine"
arch="x86_64" # Limited by cargo
license="Apache-2.0 AND MIT"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/hyperfine/archive/v$pkgver.tar.gz"

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

check() {
	cargo test all --release --verbose
}

package() {
	cargo install --path . --root="$pkgdir"/usr
	rm "$pkgdir"/usr/.crates.toml
}

sha512sums="05afb4b782bfbfff8bffb9809bae98e69a8f6e44d2d03154a9c6fcffe68309429241fe3ff446f92ea9496c674dbaa3fac63644fc14902901f3aa614c16dc96b9  hyperfine-1.5.0.tar.gz"