aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/hyperfine/APKBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/testing/hyperfine/APKBUILD b/testing/hyperfine/APKBUILD
index 7be5dda1be..f9fc98d995 100644
--- a/testing/hyperfine/APKBUILD
+++ b/testing/hyperfine/APKBUILD
@@ -8,19 +8,22 @@ 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"
+subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/hyperfine/archive/v$pkgver.tar.gz"
build() {
- cargo build --release --verbose
+ cargo build --release --locked
}
check() {
- cargo test all --release --verbose
+ cargo test all --release --locked
}
package() {
- cargo install --path . --root="$pkgdir"/usr
- rm "$pkgdir"/usr/.crates.toml
+ install -Dm755 target/release/hyperfine \
+ "$pkgdir"/usr/bin/hyperfine
+ install -Dm644 doc/hyperfine.1 \
+ "$pkgdir"/usr/share/man/man1/hyperfine.1
}
sha512sums="4d5a1549f8b35601fd1b3e2978c2a1be494adbcf3b614657005e4cf5b909bfb3999d4e31eb988d63cf20c2f41c0dcce1785306a46664d89357cec34c9a03c04a hyperfine-1.10.0.tar.gz"