Changeset View
Changeset View
Standalone View
Standalone View
package.yml
- This file was added.
| name : shaderc | |||||
| version : '2020.5' | |||||
| release : 1 | |||||
| source : | |||||
| - https://github.com/google/shaderc/archive/refs/tags/v2020.5.tar.gz : e96d8cb208b796cecb9e6cce437c7d1116343158ef3ea26277eb13b62cf56834 | |||||
| license : Apache-2.0 | |||||
| component : programming.tools | |||||
| summary : A collection of tools, libraries, and tests for Vulkan shader compilation | |||||
| description: | | |||||
| A collection of tools, libraries and tests for shader compilation. At the moment it includes both glslc, a command line compiler for GLSL/HLSL to SPIR-V, and libshaderc, a library API for accessing glslc functionality. | |||||
| builddeps : | |||||
| - pkgconfig(SPIRV-Tools) | |||||
| - glslang-devel | |||||
| rundeps : | |||||
| - glslang | |||||
| - spirv-tools | |||||
| setup : | | |||||
aleksvor: Are you sure that these are needed as rundeps? Doesn't shaderc use only static libs from -devel… | |||||
| %patch -p1 < $pkgfiles/0001-Drop-third-party-code-in-CMakeLists.txt.patch | |||||
| %patch -p1 < $pkgfiles/library-version-soversion.patch | |||||
| echo \"shaderc $(head -n3 CHANGES | tail -n1)\" > glslc/src/build-version.inc | |||||
Done Inline ActionsWhat is the intention of this? If it's just to get the build version, why don't you interpolate $version into the necessary string like v${version} and echo that? JoshStrobl: What is the intention of this? If it's just to get the build version, why don't you interpolate… | |||||
| echo \"spirv-tools $(spirv-link --version | perl -ne 'print $1 if /(v\\d+\\.\\d)/;')\" >> glslc/src/build-version.inc | |||||
| echo \"glslang v$(glslangValidator --version | head -n1 | perl -ne 'print $1 if /:(\\d.*\\d)/;')\" >> glslc/src/build-version.inc | |||||
| sed -i "s|\"SPIRV/GlslangToSpv.h\"|<glslang/SPIRV/GlslangToSpv.h>|" libshaderc_util/src/compiler.cc | |||||
Done Inline ActionsI'd prefer this be a patch. JoshStrobl: I'd prefer this be a patch. | |||||
| sed -i "s|@VERSION@|%version%|" libshaderc/CMakeLists.txt | |||||
| rm -rf third_party | |||||
| %cmake_ninja -DSHADERC_SKIP_TESTS=ON -DCMAKE_SKIP_RPATH=ON -DPYTHON_EXE=python3 | |||||
| build : | | |||||
| %ninja_build | |||||
| install : | | |||||
| %ninja_install | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.
Are you sure that these are needed as rundeps? Doesn't shaderc use only static libs from -devel subpackages?