pkgname=xorg-proto
pkgver=2024.1
pkgdesc="X.Org combined protocol headers"
homepage="https://gitlab.freedesktop.org/xorg/proto/xorgproto"
license=("MIT")
sources=("${pkgname/xorg-/xorg}-${pkgver}.tar.xz")
urls=("https://xorg.freedesktop.org/archive/individual/proto/${sources[0]}")
md5sums=("12374d29fb5ae642cfa872035e401640")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  local mesonvars=(
    --prefix=/usr
    --buildtype=plain
    --wrap-mode=nodownload
  )
  meson setup build "${mesonvars[@]}"
  meson compile -C build
}

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

# vim:ft=sh syn=sh et sw=2:
