OCaml 4.14.0 rebuild
[arch-packages.git] / directx-headers / trunk / PKGBUILD
blob48aff2f1bffb51625700266f90dcbd689ff0e52a
1 # Maintainer: Laurent Carlier <lordheavym@archlinux.org>
2 # Contributor: Cyano Hao <c@cyano.cn>
4 pkgname=directx-headers
5 pkgdesc="DirectX headers for using D3D12"
6 pkgver=1.602.0
7 pkgrel=1
8 arch=('x86_64')
9 makedepends=('meson')
10 url="https://github.com/microsoft/DirectX-Headers"
11 license=('MIT')
12 source=(directx-headers-${pkgver}.tar.gz::https://github.com/microsoft/DirectX-Headers/archive/refs/tags/v${pkgver}.tar.gz)
13 sha256sums=('3f1354c3ae603afb8e4afc5e5808a548814c99dfe186f95e9f3949a7bdbfd1d7')
15 build() {
16   # LTO breaks mesa...
17   export CXXFLAGS="$CXXFLAGS -fno-lto"
19   arch-meson DirectX-Headers-$pkgver build \
20     -Dbuild-test=false
21   ninja -C build
24 package() {
25   DESTDIR="$pkgdir" meson install -C build
27   install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" DirectX-Headers-$pkgver/LICENSE