add: equilotl

close #11377
This commit is contained in:
madonuko
2026-06-27 18:06:38 +08:00
parent 283ab47c80
commit a61b10829e
3 changed files with 106 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "golang-github-equicord-equilotl.spec"
}
}
@@ -0,0 +1,100 @@
# Generated by go2rpm 1.19.0
%bcond check 1
%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/Equicord/Equilotl
%global goipath github.com/Equicord/Equilotl
Version: 2.2.6
%gometa -f
%global common_description %{expand:
A cross platform gui/cli app for installing Equicord.}
%global golicenses LICENSE
%global godocs README.md
Name: golang-github-equicord-equilotl
Release: %autorelease
Summary: A cross platform gui app for installing Equicord
License: GPL-3.0-only
URL: %{gourl}
Source: %{gosource}
Packager: madonuko <mado@fyralabs.com>
BuildRequires: pkg-config libGL-devel libXxf86vm-devel
BuildRequires: wayland-devel libxkbcommon-devel wayland-protocols-devel extra-cmake-modules
BuildRequires: libXcursor-devel libXi-devel libXinerama-devel libXrandr-devel
RemovePathPostFixes: .wayland
%description %{common_description}
%package cli
Summary: A cross platform cli app for installing Equicord
RemovePathPostFixes: .cli
%description %{common_description}
%package x11
Summary: A cross platform gui (X11) app for installing Equicord
RemovePathPostFixes: .x11
%description %{common_description}
%gopkg
%prep
%goprep_online -A
%autopatch -p1
%if %{without bootstrap}
%build
export GO_BUILDTAGS="wayland"
%gobuild -o %{gobuilddir}/bin/Equilotl.wayland %{goipath}
export GO_BUILDTAGS=""
%gobuild -o %{gobuilddir}/bin/Equilotl.x11 %{goipath}
export GO_BUILDTAGS="cli"
%gobuild -o %{gobuilddir}/bin/Equilotl.cli %{goipath}
%endif
%install
%gopkginstall
%if %{without bootstrap}
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%endif
%if %{without bootstrap}
%if %{with check}
%check
%gocheck
%endif
%endif
%if %{without bootstrap}
%files
%license LICENSE
%doc README.md
%{_bindir}/Equilotl.wayland
%files cli
%license LICENSE
%doc README.md
%{_bindir}/Equilotl.cli
%files x11
%license LICENSE
%doc README.md
%{_bindir}/Equilotl.x11
%endif
%gopkgfiles
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("Equicord/Equilotl"));