# Maintainer: Josip Janzic # Contributor: Adrian Perez de Castro # Contributor: Antonin Décimo pkgname=wlroots-hi-res-scroll-git pkgver=0.14.0.r439.g0fcc8422 pkgrel=1 license=(custom:MIT) pkgdesc='Modular Wayland compositor library (git version)' url=https://gitlab.freedesktop.org/wlroots/wlroots arch=(x86_64) provides=("libwlroots.so" "wlroots=${pkgver%%.r*}") conflicts=(wlroots) options=(debug) depends=( glslang libinput libxcb libxkbcommon opengl-driver pixman wayland xcb-util-errors xcb-util-renderutil xcb-util-wm seatd vulkan-icd-loader vulkan-validation-layers xorg-xwayland) makedepends=( git meson vulkan-headers wayland-protocols xorgproto) source=("${pkgname}::git+${url}" # "hi_res_scroll.diff::https://github.com/swaywm/wlroots/pull/2064.diff" "hi_res_scroll.diff::https://github.com/swaywm/wlroots/compare/master...janza:master.diff" ) sha512sums=('SKIP' 'SKIP') pkgver () { cd "${pkgname}" ( set -o pipefail git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } prepare () { cd "${pkgname}" patch --forward --strip=1 --input="${srcdir}/hi_res_scroll.diff" } build () { arch-meson \ --buildtype=debug \ -Dwerror=false \ -Dexamples=false \ "${pkgname}" build meson compile -C build } package () { DESTDIR="${pkgdir}" meson install -C build install -Dm644 "${pkgname}/"LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } post_upgrade() { echo "Make sure to upgrade wlroots-git and sway-git together." echo "Upgrading one but not the other is unsupported." }