# Description: Official DirectX headers available under an open source license
# URL: https://github.com/microsoft/DirectX-Headers
# Maintainer: Tim Biermann, tbier at posteo dot de

name=directx-headers
version=1.613.1
release=1
source=(https://github.com/microsoft/DirectX-Headers/archive/v$version/$name-$version.tar.gz)

build() {
  meson setup DirectX-Headers-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=false \
    -D b_pie=true \
    -D build-test=false

  meson compile -C build
  DESTDIR=$PKG meson install -C build
}
