mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit 53e5f36785)
Signed-off-by: Owen-sz <owen@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "stardust-protostar-nightly.spec"
|
||||
}
|
||||
labels {
|
||||
nightly = 1
|
||||
}
|
||||
}
|
||||
@@ -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 <owen@fyralabs.com>
|
||||
|
||||
%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 <owen@fyralabs.com>
|
||||
- Initial commit (port from stable)
|
||||
@@ -0,0 +1,5 @@
|
||||
rpm.global("commit", gh_commit("StardustXR/protostar"));
|
||||
if rpm.changed() {
|
||||
rpm.release();
|
||||
rpm.global("commit_date", date());
|
||||
}
|
||||
Reference in New Issue
Block a user