From 97b682e9b49fafffe410d489c5d8455361a4fd7a Mon Sep 17 00:00:00 2001 From: Rainbaby Date: Wed, 24 Jan 2024 05:28:49 +0800 Subject: [PATCH] Added dovi --- Formula/dovi.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Formula/dovi.rb diff --git a/Formula/dovi.rb b/Formula/dovi.rb new file mode 100644 index 0000000..c462e6c --- /dev/null +++ b/Formula/dovi.rb @@ -0,0 +1,22 @@ +class Dovi < Formula + desc "Library to read & write Dolby Vision metadata" + homepage "https://github.com/quietvoid/dovi_tool" + url "https://github.com/quietvoid/dovi_tool/archive/refs/tags/2.1.0.tar.gz" + sha256 "06b7332649959710ec00e25a9b4e4a88ee7766149726d6e2f60c3b5bb6292664" + license "MIT" + head "https://github.com/quietvoid/dovi_tool.git", branch: "main" + + livecheck do + url :stable + regex(/^v?(\d+(?:\.\d+)+)$/i) + end + + depends_on "rust" => :build + + def install + cd "dolby_vision" do + system "cargo", "install", "cargo-c" + system "cargo", "cinstall", "--prefix=#{prefix}" + end + end +end