diff --git a/mingw-w64-spirv-tools/001-cmake-files-location.patch b/mingw-w64-spirv-tools/001-cmake-files-location.patch new file mode 100644 index 0000000000..4a129e03f8 --- /dev/null +++ b/mingw-w64-spirv-tools/001-cmake-files-location.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt 2020-03-10 12:35:41.979200000 +0300 ++++ b/CMakeLists.txt 2020-03-10 12:35:41.979200000 +0300 +@@ -210,7 +210,7 @@ + endif() + + if(ENABLE_SPIRV_TOOLS_INSTALL) +- if(WIN32) ++ if(MSVC) + macro(spvtools_config_package_dir TARGET PATH) + set(${PATH} ${TARGET}/cmake) + endmacro() diff --git a/mingw-w64-spirv-tools/PKGBUILD b/mingw-w64-spirv-tools/PKGBUILD index e310703d66..87e5120a00 100644 --- a/mingw-w64-spirv-tools/PKGBUILD +++ b/mingw-w64-spirv-tools/PKGBUILD @@ -4,7 +4,7 @@ _realname=spirv-tools pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") pkgver=2020.1 -pkgrel=1 +pkgrel=2 pkgdesc="API and commands for processing SPIR-V modules (mingw-w64)" arch=('any') url="https://www.khronos.org/vulkan/" @@ -15,12 +15,15 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cmake" "${MINGW_PACKAGE_PREFIX}-python" "git") source=("git+https://github.com/KhronosGroup/SPIRV-Tools.git#tag=v${pkgver}" - "git+https://github.com/KhronosGroup/SPIRV-Headers.git") + "git+https://github.com/KhronosGroup/SPIRV-Headers.git" + 001-cmake-files-location.patch) sha256sums=('SKIP' - 'SKIP') + 'SKIP' + 'b76834f15d7af8c268897fac1584e94199c976a57dafb2c4390e0fce28934776') prepare() { cd SPIRV-Tools + patch -p1 -i ${srcdir}/001-cmake-files-location.patch } build() {