From b7015dab2b57d9e98b7605415df5dff74ea5d5ba Mon Sep 17 00:00:00 2001 From: madomado Date: Thu, 2 May 2024 16:30:42 +0800 Subject: [PATCH] add: umupgrader (#12) --- ultramarine/umupgrader/anda.hcl | 5 +++++ ultramarine/umupgrader/umupgrader.spec | 30 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 ultramarine/umupgrader/anda.hcl create mode 100644 ultramarine/umupgrader/umupgrader.spec diff --git a/ultramarine/umupgrader/anda.hcl b/ultramarine/umupgrader/anda.hcl new file mode 100644 index 0000000..f5c93e9 --- /dev/null +++ b/ultramarine/umupgrader/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "umupgrader.spec" + } +} diff --git a/ultramarine/umupgrader/umupgrader.spec b/ultramarine/umupgrader/umupgrader.spec new file mode 100644 index 0000000..e3cb0e1 --- /dev/null +++ b/ultramarine/umupgrader/umupgrader.spec @@ -0,0 +1,30 @@ +Name: umupgrader +Version: 0.1.0 +Release: 1%?dist +Summary: A GUI System Upgrader for Ultramarine Linux +License: MIT +URL: https://github.com/Ultramarine-Linux/umupgrader +Source0: %url/archive/refs/tags/%version.tar.gz +BuildRequires: nim git-core pkgconfig(gtk4) pkgconfig(libadwaita-1) + +%description +%summary. + +%prep +%autosetup + +%build +nimble build -y -d:release -t %nim_tflags -l %nim_lflags + +%install +mkdir -p %buildroot%_bindir %buildroot%_datadir/polkit-1/actions +install -Dm755 %name %buildroot%_bindir/ +install -Dm644 com.fyralabs.umupgrader.policy %buildroot%_datadir/polkit-1/actions/ + +%files +%_bindir/%name +%_datadir/polkit-1/actions/com.fyralabs.umupgrader.policy + +%changelog +%autochangelog +