mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
* add: lazygit
* package provides lazygit
(cherry picked from commit 573f6ba506)
Co-authored-by: sadlerm4 <sad_lerm@hotmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "golang-github-jesseduffield-lazygit.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
# Generated by go2rpm 1.15.0
|
||||
|
||||
# https://github.com/jesseduffield/lazygit
|
||||
%global goipath github.com/jesseduffield/lazygit
|
||||
Version: 0.46.0
|
||||
|
||||
%gometa -f
|
||||
|
||||
%global common_description %{expand:
|
||||
Simple terminal UI for git commands.}
|
||||
|
||||
%global golicenses LICENSE
|
||||
%global godocs docs README.md VISION.md
|
||||
|
||||
Name: golang-github-jesseduffield-lazygit
|
||||
Release: 1%{?dist}
|
||||
Summary: Simple terminal UI for git commands
|
||||
|
||||
License: MIT
|
||||
URL: %{gourl}
|
||||
Source: %{gosource}
|
||||
Packager: sadlerm <lerm@chromebooks.lol>
|
||||
|
||||
BuildRequires: anda-srpm-macros
|
||||
|
||||
Provides: lazygit = %{version}-%{release}
|
||||
|
||||
%description %{common_description}
|
||||
|
||||
%gopkg
|
||||
|
||||
%prep
|
||||
%goprep
|
||||
%go_prep_online
|
||||
|
||||
%build
|
||||
go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${GO_BUILDTAGS-${BUILDTAGS-}}" -a -x \
|
||||
-ldflags "-X main.version=%{version} \
|
||||
-B 0x$(echo "%{name}-%{version}-%{release}-${SOURCE_DATE_EPOCH:-}" | sha1sum | cut -d ' ' -f1) \
|
||||
-compressdwarf=false -linkmode=external \
|
||||
-extldflags '-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now \
|
||||
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 \
|
||||
-Wl,--build-id=sha1'" \
|
||||
-o %{gobuilddir}/bin/lazygit %{goipath}
|
||||
|
||||
%install
|
||||
install -m 0755 -vd %{buildroot}%{_bindir}
|
||||
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc docs README.md VISION.md
|
||||
%{_bindir}/lazygit
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("jesseduffield/lazygit"));
|
||||
Reference in New Issue
Block a user