Skip to content

Commit

Permalink
add: stardust-armillary (#2050) (#2089)
Browse files Browse the repository at this point in the history
* initial package for stardust-armillary

* move to stardust folder

* fix directories in stardust-armillary

* RPM bug workaround stardust-armillary.spec

Signed-off-by: Owen Zimmerman <[email protected]>

* Remove conflicts

Signed-off-by: Owen Zimmerman <[email protected]>

* Update stardust-armillary.spec

Signed-off-by: Owen Zimmerman <[email protected]>

* Update stardust-armillary.spec

Remove %cargo_build

Signed-off-by: Owen Zimmerman <[email protected]>

* Update stardust-armillary.spec

Add packager

Signed-off-by: Owen Zimmerman <[email protected]>

* Update stardust-armillary.spec

Remove runtime requirements

Signed-off-by: Owen Zimmerman <[email protected]>

* Update update.rhai

Remove if statement from Rhai

Signed-off-by: Owen Zimmerman <[email protected]>

* Update update.rhai

Signed-off-by: Owen Zimmerman <[email protected]>

* Update update.rhai

fix indentation

Signed-off-by: Owen Zimmerman <[email protected]>

* Update stardust-armillary.spec

Lock cargo install

Signed-off-by: Owen Zimmerman <[email protected]>

---------

Signed-off-by: Owen Zimmerman <[email protected]>
Co-authored-by: june-fish <[email protected]>
(cherry picked from commit 693c0c4)

Co-authored-by: Owen Zimmerman <[email protected]>
  • Loading branch information
raboneko and Owen-sz authored Sep 19, 2024
1 parent a8c7499 commit 82d3081
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/stardust/armillary/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "stardust-armillary.spec"
}
}
39 changes: 39 additions & 0 deletions anda/stardust/armillary/stardust-armillary.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
%global commit 8ad02b636690170adbd4279fe3fc8265088cbcc2
%global commit_date 20240726
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# Exclude input files from mangling
%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$

Name: stardust-armillary
Version: %commit_date.%shortcommit
Release: 1%?dist
Summary: Model viewer for Stardust XR.
URL: https://github.com/StardustXR/armillary
Source0: %url/archive/%commit/armillary-%commit.tar.gz
License: MIT
BuildRequires: cargo cmake anda-srpm-macros cargo-rpm-macros mold

Provides: armillary
Packager: Owen Zimmerman <[email protected]>

%description
A model viewer for Stardust XR which works great for hand tracking, pointers, and controllers.

%prep
%autosetup -n armillary-%commit
%cargo_prep_online

%build

%install
%define __cargo_common_opts %{?_smp_mflags} -Z avoid-dev-deps --locked
%cargo_install

%files
%_bindir/armillary
%license LICENSE
%doc README.md

%changelog
* Sat Sep 7 2024 Owen-sz <[email protected]>
- Package StardustXR armillary
5 changes: 5 additions & 0 deletions anda/stardust/armillary/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("StardustXR/armillary"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}

0 comments on commit 82d3081

Please sign in to comment.