Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: clipse #2675

Merged
merged 6 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions anda/desktops/waylands/clipse/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "golang-github-savedra1-clipse.spec"
}
}
79 changes: 79 additions & 0 deletions anda/desktops/waylands/clipse/golang-github-savedra1-clipse.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Generated by go2rpm 1.14.0
%bcond check 0
%bcond bootstrap 0

#if %{with bootstrap}
%global debug_package %{nil}
#endif

%if %{with bootstrap}
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
%endif

# https://github.com/savedra1/clipse
%global goipath github.com/savedra1/clipse
Version: 1.1.0

%gometa -f

%global common_description %{expand:
Configurable TUI clipboard manager for Unix.}

%global golicenses LICENSE
%global godocs CHANGELOG.md README.md examples resources/library.md\\\
resources/test_data/top_secret_credentials.txt

Name: golang-github-savedra1-clipse
Release: %autorelease
Summary: Configurable TUI clipboard manager for Unix
Provides: clipse
Packager: madonuko <[email protected]>
License: MIT
URL: %{gourl}
Source: %{gosource}
BuildRequires: anda-srpm-macros

%description %{common_description}

%gopkg

%prep
%autosetup -p1 -n clipse-%version
%go_prep_online

#if %{without bootstrap}
#generate_buildrequires
#go_generate_buildrequires
#endif

%if %{without bootstrap}
%build
mkdir -p build/bin
go build -ldflags="-linkmode=external" -o build/bin/%{name}
%endif

%install
#gopkginstall
%if %{without bootstrap}
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp build/bin/%name %{buildroot}%{_bindir}/clipse
%endif

%if %{without bootstrap}
%if %{with check}
%check
%gocheck
%endif
%endif

%if %{without bootstrap}
%files
%license LICENSE
%doc CHANGELOG.md README.md
%{_bindir}/clipse
%endif

#gopkgfiles

%changelog
%autochangelog
1 change: 1 addition & 0 deletions anda/desktops/waylands/clipse/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("savedra1/clipse"));
Loading