aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hyperfine/APKBUILD
blob: 7be5dda1bef21ae28fe6ce09d5985a509007e227 (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:
pkgname=hyperfine
pkgver=1.10.0
pkgrel=0
pkgdesc="Command-line benchmarking tool"
url="https://github.com/sharkdp/hyperfine"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # 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="4d5a1549f8b35601fd1b3e2978c2a1be494adbcf3b614657005e4cf5b909bfb3999d4e31eb988d63cf20c2f41c0dcce1785306a46664d89357cec34c9a03c04a  hyperfine-1.10.0.tar.gz"