Created
June 21, 2024 19:07
-
-
Save raku-cat/d921297a859bc0488129d533ed459bb5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: raku_cat <raku at raku dot party> | |
# Based on PKGBUILD from: Keith Plant <kplantjr at gmail dot com> | |
pkgname="wlroots-explicitsync" | |
pkgver=0.18.0.r7094.1f163742 | |
pkgrel=1 | |
pkgdesc="Modular Wayland compositor library" | |
license=("MIT") | |
url="https://gitlab.freedesktop.org/emersion/wlroots" | |
arch=("x86_64") | |
depends=( | |
'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' | |
'systemd' | |
'vulkan-headers' | |
'wayland-protocols' | |
'xorg-xwayland' | |
) | |
options=( | |
'debug' | |
) | |
optdepends=( | |
'xorg-xwayland: Xwayland support' | |
) | |
provides=("lib${pkgname%-explicitsync}-${pkgver%.*.*.*}.so" | |
"wlroots-git") | |
source=("${pkgname}::git+${url}.git#branch=explicit-sync-ng") | |
b2sums=('SKIP') | |
validpgpkeys=( | |
'34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48' # Simon Ser | |
'9DDA3B9FA5D58DD5392C78E652CB6609B22DA89A' # Drew DeVault | |
'4100929B33EEB0FD1DB852797BC79407090047CA' # Sway signing key | |
) | |
_builddir="build" | |
_builddir_pkgver="build-pkgver" | |
_meson_setup() { | |
arch-meson \ | |
--buildtype=debug \ | |
-Dwerror=false \ | |
-Dexamples=false \ | |
"${pkgname}" "$1" | |
} | |
prepare() { | |
_meson_setup "${_builddir_pkgver}" | |
} | |
pkgver() { | |
( | |
set -o pipefail | |
meson introspect --projectinfo "${_builddir_pkgver}" | | |
awk 'match($0, /"version":\s*"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)-dev"/, ret) {printf "%s",ret[1]}' | |
) | |
cd "${pkgname}" | |
printf ".r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
build() { | |
_meson_setup "${_builddir}" | |
meson compile -C "${_builddir}" | |
} | |
package() { | |
meson install -C "${_builddir}" --destdir="${pkgdir}" | |
install -Dm644 "${pkgname}/"LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment