From 6d6086e3486351d21de0077381e0682fe7a15058 Mon Sep 17 00:00:00 2001 From: Antonio Caggiano Date: Sat, 13 Apr 2024 11:31:48 +0200 Subject: [PATCH] vulkan-sdk: 1.3.280.1 Pull the installer from LunarG website, install in Homebrew Caskroom, and then to /usr/local with the install_vulkan.py script. Signed-off-by: Antonio Caggiano --- Casks/vulkan-sdk.rb | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Casks/vulkan-sdk.rb diff --git a/Casks/vulkan-sdk.rb b/Casks/vulkan-sdk.rb new file mode 100644 index 0000000..7662a0c --- /dev/null +++ b/Casks/vulkan-sdk.rb @@ -0,0 +1,40 @@ +# Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: BSD-2-Clause + +cask "vulkan-sdk" do + name "Vulkan SDK" + desc "The Vulkan SDK enables Vulkan developers to develop Vulkan applications" + homepage "https://vulkan.lunarg.com/sdk/home" + url "https://sdk.lunarg.com/sdk/download/1.3.280.1/mac/vulkansdk-macos-1.3.280.1.dmg" + sha256 "e6c3c33d011852b85b60ed610a0572573c1c0232b5ef0802a300a738ab9ff876" + version "1.3.280.1" + + depends_on formula: "python3" + + installer script: { + executable: "InstallVulkan.app/Contents/MacOS/InstallVulkan", + args: [ + "--root", "#{staged_path}/#{token}", "--accept-licenses", "--default-answer", + "--confirm-command", "install" + ], + } + + installer script: { + executable: "#{HOMEBREW_PREFIX}/bin/python3", + args: [ + "#{staged_path}/#{token}/install_vulkan.py", + "--install-json-location", + "#{staged_path}/#{token}" + ], + sudo: true, + } + + uninstall script: { + executable: "#{staged_path}/#{token}/uninstall.sh", + sudo: true, + } + + uninstall delete: [ + "#{staged_path}/#{token}" + ] +end