diff --git a/anda/apps/equilotl/anda.hcl b/anda/apps/equilotl/anda.hcl new file mode 100644 index 0000000000..0ba3a045e5 --- /dev/null +++ b/anda/apps/equilotl/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "golang-github-equicord-equilotl.spec" + } +} diff --git a/anda/apps/equilotl/golang-github-equicord-equilotl.spec b/anda/apps/equilotl/golang-github-equicord-equilotl.spec new file mode 100644 index 0000000000..aa302c1951 --- /dev/null +++ b/anda/apps/equilotl/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 +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 diff --git a/anda/apps/equilotl/update.rhai b/anda/apps/equilotl/update.rhai new file mode 100644 index 0000000000..7a0702a894 --- /dev/null +++ b/anda/apps/equilotl/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("Equicord/Equilotl"));