Skip to content

Commit

Permalink
add: cliphist (#2676) (#2688)
Browse files Browse the repository at this point in the history
(cherry picked from commit c56ff01)

Co-authored-by: madomado <[email protected]>
  • Loading branch information
raboneko and madonuko authored Dec 19, 2024
1 parent d733f8c commit 0034b74
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/desktops/waylands/cliphist/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "golang-github-sentriz-cliphist.spec"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# 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/sentriz/cliphist
%global goipath github.com/sentriz/cliphist
Version: 0.6.1

%gometa -f

%global common_description %{expand:
Wayland clipboard manager with support for multimedia.}

%global golicenses LICENSE
%global godocs CHANGELOG.md readme.md version.txt

Name: golang-github-sentriz-cliphist
Release: %autorelease
Summary: Wayland clipboard manager with support for multimedia
Provides: cliphist
Packager: madonuko <[email protected]>
License: GPL-3.0-only
URL: %{gourl}
Source: %{gosource}
BuildRequires: anda-srpm-macros

%description %{common_description}

%gopkg

%prep
%goprep -A
%autopatch -p1
%go_prep_online

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

%if %{without bootstrap}
%build
%go_build_online
%endif

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

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

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

#gopkgfiles

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

0 comments on commit 0034b74

Please sign in to comment.