1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
3 # Contributor: cauebs <cauebs@pm.me>
8 pkgdesc="A command-line benchmarking tool"
9 url="https://github.com/sharkdp/hyperfine"
11 license=("APACHE" "MIT")
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/$pkgname/archive/v$pkgver.tar.gz")
16 sha256sums=('ffb3298945cbe2c068ca1a074946d55b9add83c9df720eda2ed7f3d94d7e65d2')
19 cd "$srcdir/$pkgname-$pkgver"
20 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
24 cd "$srcdir/$pkgname-$pkgver"
25 cargo build --release --frozen
29 cd "$srcdir/$pkgname-$pkgver"
34 cd "$srcdir/$pkgname-$pkgver"
35 install -Dm644 "LICENSE-APACHE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
36 install -Dm644 "LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
37 install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
39 install -Dm644 target/release/build/hyperfine-*/out/hyperfine.bash "$pkgdir/usr/share/bash-completion/completions/hyperfine"
40 install -Dm644 target/release/build/hyperfine-*/out/hyperfine.fish "$pkgdir/usr/share/fish/vendor_completions.d/hyperfine.fish"
41 install -Dm644 target/release/build/hyperfine-*/out/_hyperfine "$pkgdir/usr/share/zsh/site-functions/_hyperfine"
43 install -Dm644 doc/hyperfine.1 "$pkgdir/usr/share/man/man1/hyperfine.1"