Files
chromebrew/packages/vulkan_tools.rb
Satadru Pramanik 194b87b188 Gnome43/Libjpeg_turbo/ICU72.1 (#7508)
* crew: cache builds

* Initial Gnome43/Libjpeg_turbo/ICU72 commits squashed

* fix lint error

* update packages.yaml

* Vulkan packages -> 1.3.231

* add packages to packages.yaml

* add more to packages.yaml

* update libxshmfence

* pixman -> 0.42.0

* libpciaccess -> 0.17.0

* update libxau

* update libxfont2

* update libxcb

* many updates

* updates

* baobab updates

* add libshumate

* update gnome_calculator

* update dfonf_editor

* update evince

* add libpanel

* update libpeas

* update libgweather

* update libgudev gnome_maps

* update upower and libxfixes

* style update

* update gnome_session

* update gnome_settings_daemon

* temporary partial webkit2gtk upload

* update packages.yaml

* fix ruby file perms

* update folks

* move webkit2gtk_4 back to 2.38.0

* update icu4c, change webkit2gtk build

* add updated webkit2gtk_5 file

* update js102

* add x86 builds for webkit2gtk_4

* add mozjs exclusion to icu4c postinstall

* add builds for evolution_data_server

* update gemacs

* update webkit2gtk packages

* update emacs

* add folks fix

* loosen icu4c postinstall check

* rebuild libportal with gtk3

* update epiphany

* openssh -> 9.1

* add x86 webkit2gtk_4 binaries

* add postinstall to webkit2gtk_4

* update svt_av1

* update libavif

* linting fix

* curl -> 7.86.0

* git -> 2.38.1

* add postinstall to gnome_console

* add gcc10 for armv7l

* add gcc10 binaries

* lint gcc10

* rebase fix

* Add WIP webkit2gtk builds

* add back postintall to gnome_maps

* gstreamer version change

* cleanup geocode_glib, and fix gnome_maps depend

* s/@_ver.to_s/@_ver/

* add mpv build and gtk4 -> 4.8.2

* bump curl version to 7.86.0

* remove other version binaries from webkit2gtk builds

* add i686 build

* adjust compatibility for gemacs... for now.

* Add code to sommelier to adjust for whether scripts are sourced or run.

* make -> 4.4

* bump version
2022-11-01 12:23:38 -05:00

88 lines
3.3 KiB
Ruby

# Adapted from Arch Linux vulkan-tools PKGBUILD at:
# https://github.com/archlinux/svntogit-packages/raw/packages/vulkan-tools/trunk/PKGBUILD
require 'package'
class Vulkan_tools < Package
description 'Vulkan Utilities and Tools'
homepage 'https://www.khronos.org/vulkan/'
version '1.3.231'
license 'custom'
compatibility 'all'
source_url 'https://github.com/KhronosGroup/Vulkan-Tools.git'
git_hashtag "v#{version}"
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/vulkan_tools/1.3.231_armv7l/vulkan_tools-1.3.231-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/vulkan_tools/1.3.231_armv7l/vulkan_tools-1.3.231-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/vulkan_tools/1.3.231_i686/vulkan_tools-1.3.231-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/vulkan_tools/1.3.231_x86_64/vulkan_tools-1.3.231-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: '51bb8acd2988d6b166d02aef12deca99f2043a9cfa14b7fc1d482c5423ff6e58',
armv7l: '51bb8acd2988d6b166d02aef12deca99f2043a9cfa14b7fc1d482c5423ff6e58',
i686: 'e6b5506c8a5e21c9d6acef7ef2fcd9044531d3e09a5c7e957d9c258bc2076ac2',
x86_64: 'aefe2651e6d31b6b1acd5e7604ffaad046e3a391e538ae4bbf79b6e9394cd236'
})
depends_on 'gcc' # R
depends_on 'glibc' # R
depends_on 'glslang' => :build
depends_on 'libx11' # R
depends_on 'libxcb' # R
depends_on 'libxext' # R
depends_on 'libxrandr' => :build
depends_on 'python3' => :build
depends_on 'spirv_tools' => :build
depends_on 'vulkan_headers' => :build
depends_on 'vulkan_icd_loader' # R
depends_on 'wayland_protocols' => :build
depends_on 'wayland' # R
def self.build
system 'scripts/update_deps.py'
Dir.mkdir 'builddir'
Dir.chdir 'builddir' do
system "env #{CREW_ENV_OPTIONS} \
cmake -G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DVULKAN_HEADERS_INSTALL_DIR=#{CREW_PREFIX} \
-DCMAKE_INSTALL_SYSCONFDIR=#{CREW_PREFIX}/etc \
-DCMAKE_INSTALL_DATADIR=#{CREW_PREFIX}/share \
-DCMAKE_SKIP_RPATH=True \
-DBUILD_WSI_XCB_SUPPORT=On \
-DBUILD_WSI_XLIB_SUPPORT=On \
-DBUILD_WSI_WAYLAND_SUPPORT=On \
-DBUILD_CUBE=ON \
-DBUILD_VULKANINFO=ON \
-DBUILD_ICD=OFF \
.."
end
Dir.mkdir 'builddir-wayland'
Dir.chdir 'builddir-wayland' do
system "env #{CREW_ENV_OPTIONS} \
cmake -G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DVULKAN_HEADERS_INSTALL_DIR=#{CREW_PREFIX} \
-DCMAKE_INSTALL_SYSCONFDIR=#{CREW_PREFIX}/etc \
-DCMAKE_INSTALL_DATADIR=#{CREW_PREFIX}/share \
-DCMAKE_SKIP_RPATH=True \
-DBUILD_WSI_XCB_SUPPORT=OFF \
-DBUILD_WSI_XLIB_SUPPORT=OFF \
-DBUILD_WSI_WAYLAND_SUPPORT=On \
-DBUILD_CUBE=ON \
-DCUBE_WSI_SELECTION=WAYLAND \
-DBUILD_VULKANINFO=OFF \
-DBUILD_ICD=OFF \
.."
end
system 'samu -C builddir'
system 'samu -C builddir-wayland'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} samu -C builddir install"
FileUtils.install 'builddir-wayland/cube/vkcube-wayland', "#{CREW_DEST_PREFIX}/bin/vkcube-wayland", mode: 0o755
end
end