Date: Wednesday, May 27, 2020 @ 00:10:14 Author: svenstaro Revision: 635553
upgpkg: hyperfine 1.10.0-2: Add completions and man page (FS#66782) Modified: hyperfine/trunk/PKGBUILD ----------+ PKGBUILD | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-05-27 00:09:29 UTC (rev 635552) +++ PKGBUILD 2020-05-27 00:10:14 UTC (rev 635553) @@ -2,11 +2,12 @@ # Contributor: cauebs <cau...@pm.me> pkgname=hyperfine pkgver=1.10.0 -pkgrel=1 +pkgrel=2 pkgdesc="A command-line benchmarking tool" url="https://github.com/sharkdp/hyperfine" arch=("x86_64") license=("APACHE" "MIT") +depends=(gcc-libs) makedepends=(cargo) source=("$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/$pkgname/archive/v$pkgver.tar.gz") sha256sums=('b949d6c1a78e9c1c5a7bb6c241fcd51d6faf00bba5719cc312f57b5b301cc854') @@ -23,9 +24,14 @@ package() { cd "$srcdir/$pkgname-$pkgver" - # Apache doesn't need to be installed, but because of the dual license - # it makes more sense to not exclude it. - install -Dm 644 "LICENSE-APACHE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE" - install -Dm 644 "LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT" - install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm644 "LICENSE-APACHE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE" + install -Dm644 "LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT" + install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" + + install -Dm644 target/release/build/hyperfine-*/out/hyperfine.bash "$pkgdir/usr/share/bash-completion/completions/hyperfine" + install -Dm644 target/release/build/hyperfine-*/out/hyperfine.fish "$pkgdir/usr/share/fish/vendor_completions.d/hyperfine.fish" + install -Dm644 target/release/build/hyperfine-*/out/_hyperfine "$pkgdir/usr/share/zsh/site-functions/_hyperfine" + + install -Dm644 doc/hyperfine.1 "$pkgdir/usr/share/man/man1/hyperfine.1" + gzip --best "$pkgdir/usr/share/man/man1/hyperfine.1" }