mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit 3f91aab635)
Co-authored-by: Pornpipat Popum <cappy@cappuchino.xyz>
This commit is contained in:
+3458
-1460
File diff suppressed because it is too large
Load Diff
@@ -3,13 +3,13 @@
|
||||
%global _default_patch_fuzz 2
|
||||
%global build_timestamp %(date +"%Y%m%d")
|
||||
#global gamescope_tag 3.15.11
|
||||
%global gamescope_commit d3174928d47f7e353e7daca63cf882d65660cc7c
|
||||
%global gamescope_commit f873ec7868fe84d2850e91148bcbd6d6b19a7443
|
||||
%define short_commit %(echo %{gamescope_commit} | cut -c1-8)
|
||||
|
||||
Name: terra-gamescope
|
||||
#Version: 100.%{gamescope_tag}
|
||||
Version: 104.%{short_commit}
|
||||
Release: 2%?dist
|
||||
Version: 127.%{short_commit}
|
||||
Release: 1%?dist
|
||||
Summary: Micro-compositor for video games on Wayland
|
||||
|
||||
License: BSD
|
||||
@@ -27,6 +27,8 @@ Patch0: 0001-cstdint.patch
|
||||
# https://github.com/ChimeraOS/gamescope
|
||||
Patch1: handheld.patch
|
||||
|
||||
#Patch2: https://github.com/ValveSoftware/gamescope/pull/1867.patch
|
||||
|
||||
BuildRequires: meson >= 0.54.0
|
||||
BuildRequires: ninja-build
|
||||
BuildRequires: cmake
|
||||
@@ -101,9 +103,9 @@ Summary: libs for %{name}
|
||||
%summary
|
||||
|
||||
%prep
|
||||
%setup -Tc
|
||||
# git clone --depth 1 --branch %%{gamescope_tag} %%{url}.git
|
||||
git clone %{url}.git
|
||||
cd gamescope
|
||||
git clone %{url}.git $PWD
|
||||
git checkout %{gamescope_commit}
|
||||
git submodule update --init --recursive
|
||||
mkdir -p pkgconfig
|
||||
@@ -115,7 +117,6 @@ sed -i 's^../thirdparty/SPIRV-Headers/include/spirv/^/usr/include/spirv/^' src/m
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
cd gamescope
|
||||
export PKG_CONFIG_PATH=pkgconfig
|
||||
%meson \
|
||||
--auto-features=enabled \
|
||||
@@ -123,12 +124,11 @@ export PKG_CONFIG_PATH=pkgconfig
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
cd gamescope
|
||||
%meson_install --skip-subprojects
|
||||
|
||||
%files
|
||||
%license gamescope/LICENSE
|
||||
%doc gamescope/README.md
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%caps(cap_sys_nice=eip) %{_bindir}/gamescope
|
||||
%{_bindir}/gamescopectl
|
||||
%{_bindir}/gamescopestream
|
||||
|
||||
Reference in New Issue
Block a user