homebrew-cask/Casks/quakespasm.rb

23 lines
773 B
Ruby

cask "quakespasm" do
version "0.94.3"
sha256 "503bab018154e9c27fd8c5c4407bfd57c3644aa3a80a6cbb1c0ae6f631a5465e"
url "https://downloads.sourceforge.net/quakespasm/Mac/QuakeSpasm-#{version}-osx-SDL2.zip",
verified: "downloads.sourceforge.net/quakespasm/"
name "QuakeSpasm"
desc "Engine for iD software's Quake"
homepage "https://quakespasm.sourceforge.io/"
suite "QuakeSpasm"
preflight do
# There is no sub-folder; the root *is* the folder
FileUtils.mv(staged_path.children, staged_path.join("QuakeSpasm").tap(&:mkpath))
end
caveats <<~EOS
To complete the installation of #{token}, you will have to copy the file 'pak0.pak' and
'pak1.pak' from your Quake 1 installation support directory into #{appdir}/QuakeSpasm/id1/
EOS
end