aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2020-05-28 01:16:42 +0300
committerLeo <thinkabit.ukim@gmail.com>2020-05-28 06:11:26 +0000
commit45f3dffaea99494ed56e7622aca07e1c41117b1d (patch)
treecbdc2e675e97a151c47af6154e7909fa632156a2
parent6d71a7552b89392baca707a6f9cd8bf80d5d9a8e (diff)
downloadaports-45f3dffaea99494ed56e7622aca07e1c41117b1d.tar.gz
aports-45f3dffaea99494ed56e7622aca07e1c41117b1d.tar.bz2
aports-45f3dffaea99494ed56e7622aca07e1c41117b1d.tar.xz
testing/hyperfine: add shell completions
-rw-r--r--testing/hyperfine/APKBUILD15
1 files changed, 13 insertions, 2 deletions
diff --git a/testing/hyperfine/APKBUILD b/testing/hyperfine/APKBUILD
index cb916bdb5b..fd101a203c 100644
--- a/testing/hyperfine/APKBUILD
+++ b/testing/hyperfine/APKBUILD
@@ -2,13 +2,17 @@
# Maintainer:
pkgname=hyperfine
pkgver=1.10.0
-pkgrel=1
+pkgrel=2
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"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc
+ $pkgname-bash-completion
+ $pkgname-zsh-completion
+ $pkgname-fish-completion
+ "
source="$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/hyperfine/archive/v$pkgver.tar.gz"
build() {
@@ -24,6 +28,13 @@ package() {
"$pkgdir"/usr/bin/hyperfine
install -Dm644 doc/hyperfine.1 \
"$pkgdir"/usr/share/man/man1/hyperfine.1
+
+ install -Dm644 target/release/build/hyperfine-*/out/hyperfine.bash \
+ "$pkgdir/usr/share/bash-completion/completions/hyperfine"
+ install -Dm644 target/release/build/hyperfine-*/out/_hyperfine \
+ "$pkgdir/usr/share/zsh/site-functions/_hyperfine"
+ install -Dm644 target/release/build/hyperfine-*/out/hyperfine.fish \
+ "$pkgdir/usr/share/fish/completions/hyperfine.fish"
}
sha512sums="4d5a1549f8b35601fd1b3e2978c2a1be494adbcf3b614657005e4cf5b909bfb3999d4e31eb988d63cf20c2f41c0dcce1785306a46664d89357cec34c9a03c04a hyperfine-1.10.0.tar.gz"