Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[f40] add: gamescope-session (#1555) #1565

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions anda/games/gamescope-session/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
project pkg {
rpm {
spec = "gamescope-session.spec"
}
labels {
nightly = 1
}
}
35 changes: 35 additions & 0 deletions anda/games/gamescope-session/gamescope-session.spec
Original file line number Diff line number Diff line change
@@ -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/[email protected]
%_datadir/gamescope-session-plus/device-quirks
%_datadir/gamescope-session-plus/gamescope-session-plus
7 changes: 7 additions & 0 deletions anda/games/gamescope-session/update.rhai
Original file line number Diff line number Diff line change
@@ -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());
}
}
Loading