Skip to content

Commit 3a1b8e5

Browse files
optivorbis 0.3.0 (new formula)
1 parent 189851e commit 3a1b8e5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Formula/o/optivorbis.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
class Optivorbis < Formula
2+
desc "Lossless, format-preserving, two-pass optimization and repair of Vorbis data"
3+
homepage "https://optivorbis.github.io/OptiVorbis"
4+
url "https://github.com/OptiVorbis/OptiVorbis/archive/refs/tags/v0.3.0.tar.gz"
5+
sha256 "f1069b35fa24c9b73abb9a28859b84ad0accf968b8892b7a7825decc6c316cd3"
6+
license "AGPL-3.0-or-later"
7+
head "https://github.com/OptiVorbis/OptiVorbis.git", branch: "master"
8+
9+
depends_on "rust" => :build
10+
11+
def install
12+
system "cargo", "install", *std_cargo_args(path: "packages/optivorbis_cli")
13+
pkgshare.install "packages/optivorbis/resources/test"
14+
end
15+
16+
test do
17+
cp pkgshare/"test/44100hz_500ms_6ch_sine_waves.ogg", testpath
18+
system bin/"optivorbis", "44100hz_500ms_6ch_sine_waves.ogg", "out.ogg"
19+
assert_path_exists testpath/"out.ogg"
20+
end
21+
end

0 commit comments

Comments
 (0)