From 22edeaa138e906070b879f3911478d3261e75860 Mon Sep 17 00:00:00 2001 From: madomado Date: Fri, 19 Jul 2024 02:13:16 +0800 Subject: [PATCH] add: gamescope-session (#1555) --- anda/games/gamescope-session/anda.hcl | 8 +++++ .../gamescope-session/gamescope-session.spec | 35 +++++++++++++++++++ anda/games/gamescope-session/update.rhai | 7 ++++ 3 files changed, 50 insertions(+) create mode 100644 anda/games/gamescope-session/anda.hcl create mode 100644 anda/games/gamescope-session/gamescope-session.spec create mode 100644 anda/games/gamescope-session/update.rhai diff --git a/anda/games/gamescope-session/anda.hcl b/anda/games/gamescope-session/anda.hcl new file mode 100644 index 0000000000..e2d33a48b1 --- /dev/null +++ b/anda/games/gamescope-session/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "gamescope-session.spec" + } + labels { + nightly = 1 + } +} diff --git a/anda/games/gamescope-session/gamescope-session.spec b/anda/games/gamescope-session/gamescope-session.spec new file mode 100644 index 0000000000..d552c2a0cf --- /dev/null +++ b/anda/games/gamescope-session/gamescope-session.spec @@ -0,0 +1,35 @@ +%define debug_package %nil + +%global commit 4aa204e6ef332457d277488ffa61959f2dcde470 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commit_date 20240719 + +Name: gamescope-session +Version: %commit_date.%shortcommit +Release: 1%?dist +Summary: ChimeraOS session on Gamescope +License: MIT +URL: https://github.com/ChimeraOS/gamescope-session +Source0: %url/archive/%commit.tar.gz +BuildRequires: systemd-rpm-macros + +%description +Gamescope session plus based on Valve's gamescope. + +%prep +%autosetup -n gamescope-session-%commit + +%build + +%install +mkdir -p %buildroot +cp -r usr %buildroot/ + +%files +%doc README.md +%license LICENSE +%_bindir/export-gpu +%_bindir/gamescope-session-plus +%_userunitdir/gamescope-session-plus@.service +%_datadir/gamescope-session-plus/device-quirks +%_datadir/gamescope-session-plus/gamescope-session-plus diff --git a/anda/games/gamescope-session/update.rhai b/anda/games/gamescope-session/update.rhai new file mode 100644 index 0000000000..bb1b270640 --- /dev/null +++ b/anda/games/gamescope-session/update.rhai @@ -0,0 +1,7 @@ +if filters.contains("nightly") { + rpm.global("commit", gh_commit("ChimeraOS/gamescope-session")); + if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); + } +}