aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hyperfine/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/hyperfine/APKBUILD')
-rw-r--r--testing/hyperfine/APKBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/hyperfine/APKBUILD b/testing/hyperfine/APKBUILD
new file mode 100644
index 0000000000..2ec81df045
--- /dev/null
+++ b/testing/hyperfine/APKBUILD
@@ -0,0 +1,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"