From 85824994775851dab4b844e2beb06e6432fc2189 Mon Sep 17 00:00:00 2001 From: madomado Date: Wed, 23 Oct 2024 22:50:17 +0800 Subject: [PATCH] fix: stardust-flatland (#2301) * fix: stardust-flatland * fix export for STARDUST_RES_PREFIXES --- anda/stardust/flatland/stardust-flatland.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/anda/stardust/flatland/stardust-flatland.spec b/anda/stardust/flatland/stardust-flatland.spec index e6e32267f5..fdfb784cb9 100644 --- a/anda/stardust/flatland/stardust-flatland.spec +++ b/anda/stardust/flatland/stardust-flatland.spec @@ -6,7 +6,7 @@ Name: stardust-flatland Version: %commit_date.%shortcommit -Release: 1%?dist +Release: 2%?dist Summary: Flatland for Stardust XR. URL: https://github.com/StardustXR/flatland Source0: %url/archive/%commit/flatland-%commit.tar.gz @@ -24,15 +24,19 @@ Packager: Owen Zimmerman %cargo_prep_online %build -STARDUST_RES_PREFIXES=/usr/share %install %define __cargo_common_opts %{?_smp_mflags} -Z avoid-dev-deps --locked -STARDUST_RES_PREFIXES=%_datadir +export STARDUST_RES_PREFIXES=%_datadir %cargo_install +mkdir -p %buildroot%_datadir +cp -r res/* %buildroot%_datadir/ + + %files %_bindir/flatland +%_datadir/flatland/ %license LICENSE %doc README.md