diff options
author | Aerocatia | 2023-02-04 07:19:56 +1300 |
---|---|---|
committer | Aerocatia | 2023-02-04 07:19:56 +1300 |
commit | 148144fa7026d7279d39b90e51dff1d438394745 (patch) | |
tree | 866edffbc2abc998f6e80f96ea85f5d406a707d2 | |
download | aur-148144fa7026d7279d39b90e51dff1d438394745.tar.gz |
Sadly this has to exist for now
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cdd2d9124203 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = mingw-w64-directx-headers-cmake + pkgdesc = DirectX headers for using D3D12 (mingw-w64) + pkgver = 1.608.2 + pkgrel = 1 + url = https://github.com/microsoft/DirectX-Headers + arch = any + license = MIT + makedepends = mingw-w64-cmake + makedepends = ninja + conflicts = mingw-w64-directx-headers + options = staticlibs + options = !strip + options = !buildflags + source = directx-headers-1.608.2.tar.gz::https://github.com/microsoft/DirectX-Headers/archive/refs/tags/v1.608.2.tar.gz + sha256sums = 6d2b2ee19e744ce5e0e9716367ad38ebf94dd5ef18a014971594f29eb67bd87e + +pkgname = mingw-w64-directx-headers-cmake diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c322f8f2877d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Vaporeon <vaporeon@vaporeon.io> + +pkgname=mingw-w64-directx-headers-cmake +pkgdesc="DirectX headers for using D3D12 (mingw-w64)" +pkgver=1.608.2 +pkgrel=1 +arch=('any') +makedepends=('mingw-w64-cmake' 'ninja') +url="https://github.com/microsoft/DirectX-Headers" +license=('MIT') +options=('staticlibs' '!strip' '!buildflags') +source=(directx-headers-${pkgver}.tar.gz::https://github.com/microsoft/DirectX-Headers/archive/refs/tags/v${pkgver}.tar.gz) +sha256sums=('6d2b2ee19e744ce5e0e9716367ad38ebf94dd5ef18a014971594f29eb67bd87e') + +# This does not exactly provide "mingw-w64-directx-headers" +# due to missing pkg-config, but it conflicts. +# This is an upstream issue. + +conflicts=('mingw-w64-directx-headers') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + for _arch in ${_architectures}; do + ${_arch}-cmake -S DirectX-Headers-$pkgver -B build/${_arch} -G Ninja \ + -DDXHEADERS_BUILD_TEST=OFF \ + -DDXHEADERS_BUILD_GOOGLE_TEST=OFF + + cmake --build build/${_arch} + done +} + +package() { + for _arch in ${_architectures}; do + DESTDIR="${pkgdir}" cmake --install build/${_arch} + done +} |