mirror of
https://abf.rosa.ru/djam/g.git
synced 2025-02-23 06:12:56 +00:00
Imported from SRPM
This commit is contained in:
commit
0ff56b8190
2 changed files with 46 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
g-0.25.2.tar.gz: ba40b85fc27dbab90e5bcb27926ff3e04bee0fdb
|
44
g.spec
Normal file
44
g.spec
Normal file
|
@ -0,0 +1,44 @@
|
|||
%define debug %nil
|
||||
%define debug_package %nil
|
||||
|
||||
Name: g
|
||||
Version: 0.25.2
|
||||
Release: 1
|
||||
Summary: A powerful ls
|
||||
URL: https://g.equationzhao.space
|
||||
Source0: https://github.com/Equationzhao/g/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
License: MIT
|
||||
Group: Development/Other
|
||||
BuildRequires: go
|
||||
BuildRequires: git-core
|
||||
BuildRequires: upx
|
||||
|
||||
%description
|
||||
g is a ls alternative with features:
|
||||
|
||||
- display items with type-specific icons and colors that are
|
||||
easy to be customized
|
||||
- display in various layouts ( grid/across/byline/zero/comma
|
||||
/table/html/json/markdown/tree )
|
||||
- user-friendly options with many aliases
|
||||
- check file git-status when listing entries
|
||||
- highly customizable sort option
|
||||
- cross-platform ( Linux/Windows/MacOS )
|
||||
- option to fuzzy match the path like zoxide with fzf algorithm
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
export GOPROXY=direct
|
||||
go build -ldflags="-s -w" -o bin/%{name} .
|
||||
upx bin/%{name}
|
||||
|
||||
%install
|
||||
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
|
||||
%files
|
||||
%doc LICENSE *.md
|
||||
%{_bindir}/%{name}
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue