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

feat: Introduce lib32-gamescope-plus #507

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion handheld/cachyos-handheld/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = cachyos-handheld
pkgdesc = CachyOS - Handheld!
pkgver = 1.0.6
pkgrel = 1
pkgrel = 2
install = cachyos-handheld.install
arch = any
license = GPL-3.0-later
Expand All @@ -19,6 +19,7 @@ pkgbase = cachyos-handheld
depends = gamescope-session-steam-git
depends = jupiter-hw-support
depends = gamescope-plus
depends = lib32-gamescope-plus
depends = cachyos-vapor
depends = cachyos-alacritty-config
depends = wine-cachyos
Expand Down
4 changes: 2 additions & 2 deletions handheld/cachyos-handheld/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname=cachyos-handheld
pkgver=1.0.6
pkgrel=1
pkgrel=2
arch=('any')
license=('GPL-3.0-later')
pkgdesc='CachyOS - Handheld!'
Expand All @@ -19,7 +19,7 @@ validpgpkeys=(

depends=('gamescope-session-git' 'mangohud' 'jq' 'dmidecode' 'glew' 'glfw' 'glxinfo' 'curl' 'tar'
'scx-scheds' 'qt5-tools' 'gamescope-session-steam-git' 'jupiter-hw-support'
'gamescope-plus' 'cachyos-vapor' 'cachyos-alacritty-config'
'gamescope-plus' 'lib32-gamescope-plus' 'cachyos-vapor' 'cachyos-alacritty-config'
# Common dependecies
wine-cachyos giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls
lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils
Expand Down
21 changes: 21 additions & 0 deletions handheld/lib32-gamescope-plus/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pkgbase = lib32-gamescope-plus
pkgdesc = WSI Layer for use with gamescope (32-bit)
pkgver = 3.15.13.plus1
pkgrel = 1
url = https://github.com/ChimeraOS/gamescope
arch = x86_64
license = MIT
makedepends = cmake
makedepends = meson
makedepends = ninja
makedepends = wayland-protocols
makedepends = vulkan-headers
makedepends = lib32-glm
depends = lib32-wayland
depends = lib32-libx11
depends = lib32-libxcb
depends = lib32-vulkan-icd-loader
source = lib32-gamescope-plus-3.15.13.plus1::git+https://github.com/ChimeraOS/gamescope#tag=3.15.13.plus1
sha256sums = 2d3deeacc515e45e90c51535c171fe0d36f1d0e3a62127ec54997b213eb08c23

pkgname = lib32-gamescope-plus
49 changes: 49 additions & 0 deletions handheld/lib32-gamescope-plus/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Maintainer: Eric Naim <[email protected]>
# Contributor: Matthew Schwartz <[email protected]>

pkgname=lib32-gamescope-plus
pkgver=3.15.13.plus1
pkgrel=1
pkgdesc="WSI Layer for use with gamescope (32-bit)"
arch=(x86_64)
url="https://github.com/ChimeraOS/gamescope"
license=('BSD-2-Clause')
depends=(
'lib32-wayland'
'lib32-libx11'
'lib32-libxcb'
'lib32-vulkan-icd-loader')
makedepends=(
'cmake'
'meson'
'ninja'
'wayland-protocols'
'vulkan-headers'
'lib32-glm')
source=("git+${url}#tag=${pkgver}")
sha256sums=('2d3deeacc515e45e90c51535c171fe0d36f1d0e3a62127ec54997b213eb08c23')

build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"

arch-meson gamescope build \
--libdir /usr/lib32 \
-Denable_gamescope=false \
-Denable_gamescope_wsi_layer=true \
-Denable_openvr_support=false \
-Dpipewire=disabled
meson compile -C build
}

package() {
DESTDIR="$pkgdir" meson install -C build --skip-subprojects

rm -rf "$pkgdir"/usr/share/gamescope
rm -rf "$pkgdir"/usr/include
rm -rf "$pkgdir"/usr/lib/libwlroots*
rm -rf "$pkgdir"/usr/lib32/libwlroots*
rm -rf "$pkgdir"/usr/lib/pkgconfig
rm -rf "$pkgdir"/usr/lib32/pkgconfig
}