Skip to content

Commit

Permalink
vulkan-sdk: 1.3.280.1
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Fahien committed Apr 13, 2024
1 parent f78550b commit 6d6086e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Casks/vulkan-sdk.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6d6086e

Please sign in to comment.