diff --git a/Formula/ytarchive.rb b/Formula/ytarchive.rb new file mode 100644 index 0000000..38f9175 --- /dev/null +++ b/Formula/ytarchive.rb @@ -0,0 +1,21 @@ +class Ytarchive < Formula + desc 'Archive live and upcoming Youtube.com live streams' + homepage 'https://github.com/Kethsar/ytarchive' + url 'https://github.com/Kethsar/ytarchive/archive/refs/tags/latest.tar.gz' + version '0.4.0' + sha256 '10c71af032cb5579ff86c6772e17c23eda66aa797980db6409b4200fa391e78f' + license 'MIT' + head 'https://github.com/Kethsar/ytarchive.git', branch: 'dev' + + depends_on 'go' => :build + depends_on 'ffmpeg' + + def install + ENV['CGO_ENABLED'] = '0' + system 'go', 'build', *std_go_args(ldflags: '-s -w') + end + + test do + system bin / 'ytarchive', '--version' + end +end