From c35818e92e1ade9fc64b0e0eb8b4278efcfed4ec Mon Sep 17 00:00:00 2001 From: madomado Date: Tue, 8 Oct 2024 23:32:42 +0800 Subject: [PATCH] feat: add ultramarine-hop (#76) --- ultramarine/hop/anda.hcl | 5 ++++ ultramarine/hop/ultramarine-hop.spec | 38 ++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 ultramarine/hop/anda.hcl create mode 100644 ultramarine/hop/ultramarine-hop.spec diff --git a/ultramarine/hop/anda.hcl b/ultramarine/hop/anda.hcl new file mode 100644 index 0000000..a788a99 --- /dev/null +++ b/ultramarine/hop/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "ultramarine-hop.spec" + } +} diff --git a/ultramarine/hop/ultramarine-hop.spec b/ultramarine/hop/ultramarine-hop.spec new file mode 100644 index 0000000..b485873 --- /dev/null +++ b/ultramarine/hop/ultramarine-hop.spec @@ -0,0 +1,38 @@ +Name: ultramarine-hop +Version: 0.1.4 +Release: 1%?dist +Summary: Hop between desktop environments and editions easily! +License: GPL-3.0 +URL: https://github.com/Ultramarine-Linux/hop +Requires: dnf5 +Requires: ultramarine-release +BuildRequires: pkgconfig(gtk4) +BuildRequires: pkgconfig(libadwaita-1) +BuildRequires: anda-srpm-macros +BuildRequires: nim mold +Provides: hop +Provides: umswitch + +%description +Ultramarine Hop is a graphical application that enables users of Ultramarine to +switch between editions or install multiple desktop environments on their +system. + +%prep +%git_clone %url master +%nim_prep + +%build +%nim_c --define:releasever=%fedora src/umswitch + +%install +install -Dm755 src/umswitch %buildroot%_bindir/umswitch +install -Dm644 com.fyralabs.umswitch.policy %buildroot%_datadir/polkit-1/actions/com.fyralabs.umswitch.policy +install -Dm644 umswitch.desktop %buildroot%_datadir/applications/umswitch.desktop + +%files +%doc README.md +%license LICENSE +%_bindir/umswitch +%_datadir/polkit-1/actions/com.fyralabs.umswitch.policy +%_datadir/applications/umswitch.desktop