From 94a4db0d9424221f5a0f322e6d97d2afbb2b7cc5 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Fri, 11 Apr 2025 10:23:58 -0700 Subject: [PATCH] add: readymade (#4295) (#4296) * package readymade (https://github.com/ublue-os/titanoboa/issues/66) * omit branding (cherry picked from commit b1349d1c45665a21494ea43e81a59be927745c4e) Co-authored-by: Pornpipat Popum --- anda/system/readymade/anda.hcl | 5 +++ anda/system/readymade/readymade.spec | 56 ++++++++++++++++++++++++++++ anda/system/readymade/update.rhai | 1 + 3 files changed, 62 insertions(+) create mode 100644 anda/system/readymade/anda.hcl create mode 100644 anda/system/readymade/readymade.spec create mode 100644 anda/system/readymade/update.rhai diff --git a/anda/system/readymade/anda.hcl b/anda/system/readymade/anda.hcl new file mode 100644 index 0000000000..4dec03fdad --- /dev/null +++ b/anda/system/readymade/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "readymade.spec" + } +} diff --git a/anda/system/readymade/readymade.spec b/anda/system/readymade/readymade.spec new file mode 100644 index 0000000000..a526942863 --- /dev/null +++ b/anda/system/readymade/readymade.spec @@ -0,0 +1,56 @@ +Name: readymade +Version: 0.11.2 +Release: 1%?dist +Summary: Install ready-made distribution images! +License: MIT +URL: https://github.com/FyraLabs/readymade +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz +BuildRequires: anda-srpm-macros rust-packaging mold +BuildRequires: pkgconfig(libhelium-1) +BuildRequires: pkgconfig(gnome-desktop-4) +BuildRequires: clang-devel +BuildRequires: cmake + +Requires: efibootmgr + +%description +Readymade is a simple Linux Distribution installer. + +It is created as a replacement to Red Hat's Anaconda installer. + + +%package config-ultramarine +Summary: Readymade Configuration for Ultramarine Linux +License: MIT +Requires: readymade +Provides: readymade-config + +%description config-ultramarine +This package contains the configuration files for Readymade to install Ultramarine Linux. + + +%prep +%autosetup +%cargo_prep_online + +%build + +%install +%cargo_install +./install.sh %buildroot +ln -sf %{_datadir}/applications/com.fyralabs.Readymade.desktop %{buildroot}%{_datadir}/applications/liveinst.desktop + +%find_lang com.fyralabs.Readymade + +%files config-ultramarine +%_sysconfdir/readymade.toml + + +%files -f com.fyralabs.Readymade.lang +%_bindir/readymade +%_datadir/polkit-1/actions/com.fyralabs.pkexec.readymade.policy +%_datadir/applications/com.fyralabs.Readymade.desktop +%_datadir/applications/liveinst.desktop +%_datadir/readymade +%_datadir/icons/hicolor/scalable/apps/com.fyralabs.Readymade.svg + diff --git a/anda/system/readymade/update.rhai b/anda/system/readymade/update.rhai new file mode 100644 index 0000000000..80d9960011 --- /dev/null +++ b/anda/system/readymade/update.rhai @@ -0,0 +1 @@ +rpm.version(gh_tag("FyraLabs/readymade"));