# Contributor: Fernando Casas Schossow # Maintainer: Fernando Casas Schossow pkgname=virglrenderer pkgver=0.8.1 pkgrel=0 pkgdesc="A virtual 3D GPU library, that allows the guest operating system to use the host GPU to accelerate 3D rendering" url="https://virgil3d.github.io/" options="!check" arch="all" license="MIT" makedepends="meson file libdrm-dev mesa-dev libepoxy-dev python3 check-dev" subpackages="$pkgname-dev" source="https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-$pkgver/virglrenderer-virglrenderer-$pkgver.tar.gz musl-fixes.patch" builddir="$srcdir/$pkgname-$pkgname-$pkgver" build() { meson \ --prefix=/usr \ -Dtests=true \ . output ninja -C output } package() { DESTDIR="$pkgdir" ninja -C output install } check() { ninja -C output test } sha512sums="c4c009cc0cc9302243ab95c34f20dd84edb1150f329544cc55526f655fdfc0c98884c4f240007954450bd59f3e875b798ae10c7c24a35682313b9476f0ace23a virglrenderer-virglrenderer-0.8.1.tar.gz 8f12548eb6ea3a2ac4f90ae74dbb338df0f57876104eb27e78d7acc184c0fe3b192636001606197a59b9cb286e8417579e41df3e132999ab0e3472d6604f8a3e musl-fixes.patch"