yochananmarqos

gamescope

Oct 23rd, 2021
885
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=gamescope
  2. pkgver=3.9.5
  3. pkgrel=2
  4. pkgdesc="The micro-compositor formerly known as steamcompmgr"
  5. arch=('x86_64')
  6. url="https://github.com/Plagman/gamescope"
  7. license=('BSD')
  8. depends=(glslang libcap libdrm libinput libliftoff libpng libxcb libxcomposite libxkbcommon
  9.          libxrender libxres libxtst opengl-driver pipewire pixman seatd sdl2
  10.          vulkan-icd-loader wayland wlroots xcb-util-errors xcb-util-wm
  11.          xorg-server-xwayland)
  12. makedepends=('git' 'cmake' 'meson' 'vulkan-headers' 'wayland-protocols')
  13. conflicts=('steamcompmgr')
  14. replaces=('steamcompmgr')
  15. source=("git+https://github.com/Plagman/gamescope.git#tag=$pkgver"
  16.         'git+https://github.com/emersion/libliftoff.git'
  17.         'git+https://github.com/nothings/stb.git'
  18.         'git+https://github.com/swaywm/wlroots.git')
  19. sha256sums=('SKIP'
  20.             'SKIP'
  21.             'SKIP'
  22.             'SKIP')
  23.  
  24. prepare() {
  25.   cd "$srcdir/$pkgname"
  26.   git submodule init subprojects/libliftoff
  27.   git config submodule.libliftoff.url "$srcdir/libliftoff"
  28.  
  29.   git submodule init subprojects/packagefiles/stb
  30.   git config submodule.stb.url "$srcdir/stb"
  31.  
  32.   git submodule init subprojects/wlroots
  33.   git config submodule.wlroots.url "$srcdir/wlroots"
  34.  
  35.   git submodule update
  36. }
  37.  
  38. build() {
  39.   arch-meson "$pkgname" build --wrap-mode default
  40.   meson compile -C build
  41. }
  42.  
  43. check() {
  44.   meson test -C build --print-errorlogs
  45. }
  46.  
  47. package() {
  48.   meson install -C build --destdir "$pkgdir"
  49.  
  50.   # libliftoff & wlroots are statically linked
  51.   rm -rfv "$pkgdir"/usr/{include,lib}
  52.  
  53.   cd "$srcdir/$pkgname"
  54.   install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
  55. }
RAW Paste Data