diff --git a/anda/stardust/protostar/nightly/anda.hcl b/anda/stardust/protostar/nightly/anda.hcl new file mode 100644 index 0000000000..1bc430c7f8 --- /dev/null +++ b/anda/stardust/protostar/nightly/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "stardust-protostar-nightly.spec" + } + labels { + nightly = 1 + } +} diff --git a/anda/stardust/protostar/nightly/stardust-protostar-nightly.spec b/anda/stardust/protostar/nightly/stardust-protostar-nightly.spec new file mode 100644 index 0000000000..ef86efe6aa --- /dev/null +++ b/anda/stardust/protostar/nightly/stardust-protostar-nightly.spec @@ -0,0 +1,56 @@ +%global commit 7609cbfc07121b3b68d91bf2124b9c0afa57363d +%global commit_date 20251218 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +# Exclude input files from mangling +%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$ + +Name: stardust-xr-protostar-nightly +Version: 0~%{commit_date}git.%{shortcommit} +Release: 1%?dist +Summary: Prototype application launcher for Stardust XR +URL: https://github.com/StardustXR/protostar +Source0: %url/archive/%commit/protostar-%commit.tar.gz +License: MIT +BuildRequires: cargo cmake anda-srpm-macros cargo-rpm-macros mold libudev-devel g++ libinput-devel libxkbcommon-x11-devel + +Provides: protostar-nightly stardust-protostar-nightly +Conflicts: stardust-xr-protostar +Packager: Owen Zimmerman + +%description +Prototype application launcher for StardustXR, providing an easy to use crate to write applications launchers. + +%prep +%autosetup -n protostar-%commit +%cargo_prep_online + +%build + +%install +%define __cargo_common_opts %{?_smp_mflags} -Z avoid-dev-deps --locked +export STARDUST_RES_PREFIXES=%_datadir +(cd app_grid && %cargo_install) & +(cd hexagon_launcher && %cargo_install) & +(cd single && %cargo_install) & +(cd sirius && %cargo_install) & + +wait + +mkdir -p %buildroot%_datadir +cp -r res/* %buildroot%_datadir/ + +%cargo_license_summary_online +%{cargo_license_online} > LICENSE.dependencies + +%files +%doc README.md +%license LICENSE +%license LICENSE.dependencies +%_bindir/hexagon_launcher +%_bindir/single +%_bindir/sirius +%_datadir/protostar/ + +%changelog +* Sun Jan 11 2026 Owen Zimmerman +- Initial commit (port from stable) diff --git a/anda/stardust/protostar/nightly/update.rhai b/anda/stardust/protostar/nightly/update.rhai new file mode 100644 index 0000000000..90aae413bd --- /dev/null +++ b/anda/stardust/protostar/nightly/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("StardustXR/protostar")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +} diff --git a/anda/stardust/protostar/anda.hcl b/anda/stardust/protostar/stable/anda.hcl similarity index 100% rename from anda/stardust/protostar/anda.hcl rename to anda/stardust/protostar/stable/anda.hcl diff --git a/anda/stardust/protostar/stardust-protostar.spec b/anda/stardust/protostar/stable/stardust-protostar.spec similarity index 100% rename from anda/stardust/protostar/stardust-protostar.spec rename to anda/stardust/protostar/stable/stardust-protostar.spec diff --git a/anda/stardust/protostar/update.rhai b/anda/stardust/protostar/stable/update.rhai similarity index 100% rename from anda/stardust/protostar/update.rhai rename to anda/stardust/protostar/stable/update.rhai