mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-07 22:54:11 -05:00
* Add unbuilt shaderc to updater-shaderc-2025.4 * conflicts_ok Signed-off-by: Satadru Pramanik <satadru@gmail.com> * updater-shaderc-2025.4: Package File Update Run on linux/386 container. * updater-shaderc-2025.4: Package File Update Run on linux/amd64 container. * updater-shaderc-2025.4: Package File Update Run on linux/arm/v7 container. * remove i686 Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: chromebrew-actions[bot] <220035932+chromebrew-actions[bot]@users.noreply.github.com>
40 lines
1.2 KiB
Ruby
40 lines
1.2 KiB
Ruby
# Adapted from Arch Linux shaderc PKGBUILD at:
|
|
# https://github.com/archlinux/svntogit-packages/raw/packages/shaderc/trunk/PKGBUILD
|
|
|
|
require 'buildsystems/cmake'
|
|
|
|
class Shaderc < CMake
|
|
description 'Collection of tools, libraries and tests for shader compilation'
|
|
homepage 'https://github.com/google/shaderc'
|
|
version '2025.4'
|
|
license 'Apache-2.0'
|
|
compatibility 'aarch64 armv7l x86_64'
|
|
source_url 'https://github.com/google/shaderc.git'
|
|
git_hashtag "v#{version}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '10afd6df640941542e19f92760a8f55895f080949072ac7df1f46ba4456fa627',
|
|
armv7l: '10afd6df640941542e19f92760a8f55895f080949072ac7df1f46ba4456fa627',
|
|
x86_64: '00db20c22ac98f17becaf9f8d628b8b50eac78f22011666cd7a63f99dfb24110'
|
|
})
|
|
|
|
depends_on 'ruby_asciidoctor' => :build
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'glslang' # R
|
|
depends_on 'spirv_headers' => :build
|
|
depends_on 'spirv_tools' # R
|
|
|
|
conflicts_ok # conflicts with glslang
|
|
|
|
def self.patch
|
|
system './utils/git-sync-deps'
|
|
end
|
|
|
|
cmake_options '-DSPIRV_WERROR=Off \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DSHADERC_SKIP_TESTS=ON \
|
|
-DSHADERC_ENABLE_EXAMPLES=OFF'
|
|
end
|