podsync 2.5.0 (new formula)

Closes #120052.

Signed-off-by: Dawid Dziurla <9713907+dawidd6@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Nathan Smith 2023-01-07 18:35:04 -08:00 committed by BrewTestBot
parent 95d63dfff1
commit 482a881d05
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 47 additions and 0 deletions

47
Formula/podsync.rb Normal file
View File

@ -0,0 +1,47 @@
class Podsync < Formula
desc "Turn YouTube or Vimeo channels, users, or playlists into podcast feeds"
homepage "https://github.com/mxpv/podsync"
url "https://github.com/mxpv/podsync/archive/refs/tags/v2.5.0.tar.gz"
sha256 "45c3afea38ef45f665f456bc542ac57fecdafed884181156df6b44624b66d6b8"
license "MIT"
head "https://github.com/mxpv/podsync.git", branch: "main"
depends_on "go" => :build
depends_on "ffmpeg"
depends_on "youtube-dl"
def install
system "make", "build"
bin.install "bin/podsync"
end
test do
port = free_port
(testpath/"config.toml").write <<~EOS
[server]
port = #{port}
[log]
filename = "podsync.log"
[storage]
[storage.local]
data_dir = "data/podsync/"
[feeds]
[feeds.ID1]
url = "https://www.youtube.com/channel/UCxC5Ls6DwqV0e-CYcAKkExQ"
EOS
pid = fork do
exec bin/"podsync"
end
sleep 1
Process.kill("SIGINT", pid)
Process.wait(pid)
assert_predicate testpath/"podsync.log", :exist?
end
end