jobextra/wlroots/PKGBUILD

73 lines
2.4 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=wlroots
pkgver=0.17.2
pkgrel=01
pkgdesc='Modular Wayland compositor library'
url='https://gitlab.freedesktop.org/wlroots/wlroots'
depends=(
'cairo'
'libdisplay-info.so'
'libglvnd'
'libinput'
'libpixman-1.so'
'libseat.so'
'libudev.so'
'libvulkan.so'
'libwayland-client.so'
'libwayland-server.so'
'libxcb'
'libxkbcommon.so'
'opengl-driver'
'xcb-util-errors'
'xcb-util-renderutil'
'xcb-util-wm'
)
makedepends=('glslang' 'meson' 'ninja' 'vulkan-headers' 'wayland-protocols' 'xorg-xwayland'
'cmake' 'cairo')
optdepends=('xorg-xwayland: Xwayland support')
provides=('libwlroots.so')
# options=(debug)
source=("$pkgname-$pkgver.tar.gz::https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/$pkgver/downloads/wlroots-$pkgver.tar.gz"
"https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/$pkgver/downloads/wlroots-$pkgver.tar.gz.sig"
"Revert-layer-shell-error-on-0-dimension-without-anch.patch")
prepare() {
cd "${pkgname}-${pkgver}"
# Allow a minor protocol violation until phosh is fixed without this patch
# phosh crashes on launch.
patch -Np1 -i "${srcdir}/Revert-layer-shell-error-on-0-dimension-without-anch.patch"
}
build() {
arch-meson "$pkgname-$pkgver" build
ninja -C build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
install -Dm644 "$pkgname-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('MIT')
validpgpkeys=('34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48' # Simon Ser
'9DDA3B9FA5D58DD5392C78E652CB6609B22DA89A' # Drew DeVault
'4100929B33EEB0FD1DB852797BC79407090047CA') # Sway signing key
sha256sums=(f4007d3f71e190b9000ab4a30afd87833b034ab2602030a00af4465ffd4e997c # wlroots-0.17.2.tar.gz
d995c1e4a2d1a73d50dbb37bde90501f4276825a52aad50d5f32401715ce0e86 # wlroots-0.17.2.tar.gz.sig
1c05f0500a96a3721317d01619aa42d8ad696905a378249e8405968c4e16a065) # Revert-layer-shell-error-on-0-dimension-without-anch.patch
## 9df37e112657edbd585a7ceb69b2e8fba2be44ecf6c6b89ebeb653b89c0d34f0 wlroots-0.17.2-01-x86_64.pkg.tar.lz