diff --git a/anda/games/gamescope-session-steam/anda.hcl b/anda/games/gamescope-session-steam/anda.hcl new file mode 100644 index 0000000000..557b0d83d2 --- /dev/null +++ b/anda/games/gamescope-session-steam/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "gamescope-session-steam.spec" + } + labels { + nightly = 1 + } +} diff --git a/anda/games/gamescope-session-steam/gamescope-session-steam.spec b/anda/games/gamescope-session-steam/gamescope-session-steam.spec new file mode 100644 index 0000000000..8cf4b0533c --- /dev/null +++ b/anda/games/gamescope-session-steam/gamescope-session-steam.spec @@ -0,0 +1,40 @@ +%define debug_package %nil + +%global commit 015e09825d4f9a2dfdbc20fc2711e2dcee2af68a +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commit_date 20240719 + +Name: gamescope-session-steam +Version: %commit_date.%shortcommit +Release: 1%?dist +Summary: gamescope-session-steam +License: MIT +URL: https://github.com/ChimeraOS/gamescope-session-steam +Source0: %url/archive/%commit.tar.gz + +%description +%summary. + +%prep +%autosetup -n %name-%commit + +%build + +%install +mkdir -p %buildroot +cp -r usr %buildroot/ + +%files +%license LICENSE +%_bindir/steamos-polkit-helpers/ +%_bindir/jupiter-biosupdate +%_bindir/steam-http-loader +%_bindir/steamos-select-branch +%_bindir/steamos-session-select +%_bindir/steamos-update +%_datadir/applications/gamescope-mimeapps.list +%_datadir/applications/steam_http_loader.desktop +%_datadir/gamescope-session-plus/sessions.d/steam +%_datadir/polkit-1/actions/org.chimeraos.update.policy +%_datadir/wayland-sessions/gamescope-session-steam.desktop +%_datadir/wayland-sessions/gamescope-session.desktop diff --git a/anda/games/gamescope-session-steam/update.rhai b/anda/games/gamescope-session-steam/update.rhai new file mode 100644 index 0000000000..35c20f6c72 --- /dev/null +++ b/anda/games/gamescope-session-steam/update.rhai @@ -0,0 +1,7 @@ +if filters.contains("nightly") { + rpm.global("commit", gh_commit("ChimeraOS/gamescope-session-steam")); + if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); + } +}