# Maintainer: Peter Jung <ptr1337@archlinux.org>

pkgname=egl-x11
pkgver=1.0.3
pkgrel=1
pkgdesc="NVIDIA XLib and XCB EGL Platform Library"
arch=('x86_64' 'aarch64')
url="https://github.com/NVIDIA/egl-x11"
license=('Apache-2.0')
depends=(
  eglexternalplatform
  glibc
  libdrm
  libx11
  libxcb
  mesa
)
makedepends=(
  meson
  git
)
source=("git+https://github.com/NVIDIA/egl-x11#tag=v$pkgver")
sha256sums=('ebef20d89f8001df3b89488f1f968a5a8624fa42430a0b595672925cb210d656')

build() {
  arch-meson "$pkgname" build
  meson compile -C build
}

package() {
  meson install -C build --destdir "$pkgdir"
}

