mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-09 12:19:09 +00:00
413d86eb25
This file content was took from Homebrew's core with `lune.rb`, except the preinstalled bottles were removed.
18 lines
529 B
Ruby
18 lines
529 B
Ruby
class Lune < Formula
|
|
desc "Standalone Luau script runtime"
|
|
homepage "https://lune-org.github.io/docs"
|
|
url "https://github.com/filiptibell/lune/archive/refs/tags/v0.7.6.tar.gz"
|
|
sha256 "235c26df94d7c7f1e8a4fa79f9a08b407841cc4477274b42b172828eaf67d1bc"
|
|
license "MPL-2.0"
|
|
|
|
depends_on "rust" => :build
|
|
|
|
def install
|
|
system "cargo", "install", "--all-features", *std_cargo_args
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.lua").write("print(2 + 2)")
|
|
assert_equal "4", shell_output("#{bin}/lune test.lua").chomp
|
|
end
|
|
end
|