From 9d8d8264f6699d4ed93dbca20fc650091b73a62c Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Tue, 1 Nov 2022 22:57:50 +0100 Subject: [PATCH] fd: update to 8.5.0 --- srcpkgs/fd/template | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/srcpkgs/fd/template b/srcpkgs/fd/template index 921326aca30d..5bb39e64f3e1 100644 --- a/srcpkgs/fd/template +++ b/srcpkgs/fd/template @@ -1,22 +1,25 @@ # Template file for 'fd' pkgname=fd -version=8.4.0 +version=8.5.0 revision=1 build_style=cargo +build_helper=qemu short_desc="Simple, fast and user-friendly alternative to find" maintainer="Jerry Tegno " license="Apache-2.0, MIT" homepage="https://github.com/sharkdp/fd" changelog="https://raw.githubusercontent.com/sharkdp/fd/master/CHANGELOG.md" -distfiles="https://github.com/sharkdp/fd/archive/v${version}.tar.gz" -checksum=d0c2fc7ddbe74e3fd88bf5bb02e0f69078ee6d2aeea3d8df42f508543c9db05d +distfiles="https://github.com/sharkdp/fd/archive/refs/tags/v${version}.tar.gz" +checksum=b719d87da077e35a7588541ba99acbd01e53aa3242b40e26c487d047b959247b post_install() { vman doc/fd.1 vlicense LICENSE-MIT vcompletion contrib/completion/_fd zsh - cd "target/${RUST_TARGET}/release/build/fd-find-"*/out - vcompletion fd.bash bash - vcompletion fd.fish fish + local fd="${DESTDIR}/usr/bin/fd" + for shell in bash fish; do + vtargetrun ${fd} --gen-completions ${shell} > fd.${shell} + vcompletion fd.${shell} ${shell} + done }