clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
522 stars 29 forks source link

fd #3153

Closed K1ngfish3r closed 3 months ago

K1ngfish3r commented 4 months ago

Official package name: fd

License (must be an OSI approved Open Source license): Apache-2.0 MIT

Download URL of latest release: https://github.com/sharkdp/fd/archive/refs/tags/v10.1.0.tar.gz

Latest release date (must be recent): May 8, 2024

Description: fd is a program to find entries in your filesystem. It is a simple, fast and user-friendly alternative to find. While it does not aim to support all of find's powerful functionality, it provides sensible (opinionated) defaults for a majority of use cases.

Autospec notes: for-review.txt options.conf cargo_vendor = true

EDIT: Realized that the Makefile can be used to install fd build_pattern = make

series add the following patch to change prefix from /usr/local -> /usr

diff --git a/Makefile b/Makefile
index b351271..9f8eb04 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 PROFILE=release
 EXE=target/$(PROFILE)/fd
-prefix=/usr/local
+prefix=/usr
 bindir=$(prefix)/bin
 datadir=$(prefix)/share
 exe_name=fd

this way, it also installs the bash-completions

%files bin
%defattr(-,root,root,-)
/usr/bin/fd

%files data
%defattr(-,root,root,-)
/usr/share/bash-completion/completions/fd
/usr/share/fish/vendor_completions.d/fd.fish
/usr/share/zsh/site-functions/_fd

%files man
%defattr(0644,root,root,0755)
/usr/share/man/man1/fd.1
paulcarroty commented 4 months ago

Would be nice to have, definitely.

K1ngfish3r commented 3 months ago

the fd bundle released in 42080 is currently broken, recommend the above changes

paulcarroty commented 3 months ago

Yep, only licences in %files.

K1ngfish3r commented 3 months ago

bundle fd working properly in 42090, closing