Name libglvnd
Description The GL Vendor-Neutral Dispatch library
Version 1.7.0-3
Package Base libglvnd
Homepage https://gitlab.freedesktop.org/glvnd/libglvnd
Maintainers ['Felix Yan <felixonmars@archlinux.org>', 'Sven-Hendrik Haase <svenstaro@archlinux.org>']
Contributors []
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/libglvnd
Sources ['https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v1.7.0/libglvnd-v1.7.0.tar.gz', 'license-from-upstream']
Dependencies ['libxext', 'mesa', 'opengl-driver']
Optional-Dependencies []
Build-Dependencies ['libxext', 'libx11', 'xorgproto', 'python', 'meson']
Provides ['libgl', 'libegl', 'libgles', 'libEGL.so', 'libGL.so', 'libGLESv2.so', 'libGLX.so', 'libGLdispatch.so', 'libOpenGL.so']
Builddate 14-06-2025 01:55:06
Architecture x86_64
Distro-Version
Licenses ['custom:BSD-like']
Hash 633c2e95d7798d0ce7ee1b7fe970a22325f7f6d35b9f923bb61b223a80934437
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=libglvnd
pkgver=1.7.0
pkgrel=3
pkgdesc="The GL Vendor-Neutral Dispatch library"
arch=('x86_64')
url="https://gitlab.freedesktop.org/glvnd/libglvnd"
license=('custom:BSD-like')
makedepends=('libxext' 'libx11' 'xorgproto' 'python' 'meson')
provides=('libgl' 'libegl' 'libgles')
provides+=(libEGL.so libGL.so libGLESv2.so libGLX.so libGLdispatch.so libOpenGL.so)
source=("https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v$pkgver/libglvnd-v$pkgver.tar.gz"
        license-from-upstream)
sha512sums=('7b6eb8e075b48f1d915b892044adc3260547d74ed61d1e2fa6c5f0f8c3527754abea314181e088626d4fd58bb221085e5288c4758d828e171c7dcb0e4991745c'
            'bf0f4a7e04220a407400f89226ecc1f798cc43035f2538cc8860e5088e1f84140baf0d4b0b28f66e4b802d4d6925769a1297c24e1ba39c1c093902b2931781a5')

build() {
  arch-meson $pkgname-v$pkgver build \
    -D gles1=false

  meson compile -C build
}

package() {
  # libglvnd needs mesa for indirect rendering
  depends=('libxext' 'mesa' 'opengl-driver')

  meson install -C build --destdir "$pkgdir"

  install -Dm644 license-from-upstream "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}