# Maintainer : Vincent Grande # Contributor : Antonin Décimo # Contributor : Adrian Perez de Castro # Contributor : Eric Vidal # Contributor : Jean-Michel T.Dydak # Contributor : Brett Cornwall # Contributor : Omar Pakker pkgname=wlroots-nosystemd-minimal-git pkgver=0.13.0 pkgrel=1 pkgdesc='Modular Wayland compositor library' url="https://github.com/swaywm/wlroots" arch=('x86_64') license=('MIT') source=("git+https://github.com/swaywm/wlroots") sha512sums=('SKIP') depends=( 'libinput' 'libxcb' 'libxkbcommon' 'opengl-driver' 'pixman' 'wayland' # 'xcb-util-errors' 'xcb-util-image' 'xcb-util-wm' 'xcb-util-renderutil' 'xorg-xwayland' ) makedepends=( 'git' 'meson' 'ninja' 'wayland-protocols' ) provides=('libwlroots.so' 'wlroots' 'wlroots-git' "wlroots=${pkgver%%.r*}") conflicts=('wlroots' 'wlroots-git') pkgver () { cd wlroots ( 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)" ) } _path=( --prefix=/usr ) _flags=( --buildtype=plain -Dlibseat=disabled -Dxcb-errors=disabled -Dxcb-icccm=enabled -Dxcb-xkb=enabled -Dxwayland=enabled -Dx11-backend=enabled -Dexamples=false -Dxdg-foreign=disabled -Db_ndebug=true -Dwerror=false ) build() { meson wlroots build "${_path[@]}" "${_flags[@]}" ninja $NINJAFLAGS -C build } package() { DESTDIR="$pkgdir" ninja $NINJAFLAGS -C build install install -Dm644 "wlroots/LICENSE" -t "$pkgdir/usr/share/licenses/wlroots/" } post_upgrade() { echo "Make sure to upgrade wlroots-nosystemd-minimal-git and sway-nosystemd-minimal-git together." echo "Upgrading one but not the other is unsupported." }