lune-packaging/Formula/lune.rb

19 lines
529 B
Ruby
Raw Normal View History

2023-07-29 07:53:19 +01:00
class Lune < Formula
desc "Standalone Luau script runtime"
2023-07-29 07:53:19 +01:00
homepage "https://lune-org.github.io/docs"
url "https://github.com/filiptibell/lune/archive/refs/tags/v0.7.5.tar.gz"
sha256 "e8191df5d6844026772cc7afab1083235a265c506474c4c4dee0a7724b04f775"
2023-07-29 07:53:19 +01:00
license "MPL-2.0"
depends_on "rust" => :build
2023-07-29 07:53:19 +01:00
def install
system "cargo", "install", "--all-features", *std_cargo_args
2023-07-29 07:53:19 +01:00
end
test do
(testpath/"test.lua").write("print(2 + 2)")
assert_equal "4", shell_output("#{bin}/lune test.lua").chomp
2023-07-29 07:53:19 +01:00
end
end