# Maintainer: Simon Zeni pkgname=waffle pkgver=1.7.2 pkgrel=0 pkgdesc="C library for selecting an OpenGL API and window system at runtime" options="!check" # tests are platform dependant (x11/wayland) url="https://gitlab.freedesktop.org/mesa/waffle" arch="all" license="BSD-2-Clause" makedepends=" bash-completion-dev cmake docbook-xsl eudev-dev libxslt mesa-dev mesa-egl mesa-gbm meson wayland-dev wayland-protocols " subpackages=" $pkgname-dev $pkgname-doc $pkgname-bash-completion $pkgname-zsh-completion " source="https://waffle.freedesktop.org/files/release/waffle-$pkgver/waffle-$pkgver.tar.xz" build() { abuild-meson \ -Db_lto=true \ -Dbuild-examples=false \ -Dbuild-manpages=true \ -Dbuild-htmldocs=false \ -Dbuild-tests=false \ -Dgbm=enabled \ -Dsurfaceless_egl=enabled \ -Dwayland=enabled \ -Dx11_egl=enabled \ -Dglx=enabled \ build meson compile -C build } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C build } sha512sums=" f14a11667d6229c0b077cb021b86a1499ba615e156d98746aac36bf31c97cc4f19cb4743b16c465f458c1dc3203c1589c452cf79d461ebd623c23fd23b4beebb waffle-1.7.2.tar.xz "