-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathliveaudioserver.rb
More file actions
43 lines (39 loc) · 1.71 KB
/
liveaudioserver.rb
File metadata and controls
43 lines (39 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# LiveAudioServer — https://github.com/dsward2/LiveAudioServer
#
# Homebrew formula. Copy this file to your tap repository
# (e.g. github.com/dsward2/homebrew-tap/Formula/liveaudioserver.rb) and
# users can then install via:
#
# brew install dsward2/tap/liveaudioserver
#
# At release time:
# 1. Tag the source: `git tag v0.1.0 && git push --tags`
# 2. GitHub auto-creates a tarball at the URL below.
# 3. Compute the SHA256 with:
# curl -sL https://github.com/dsward2/LiveAudioServer/archive/refs/tags/v0.1.0.tar.gz \
# | shasum -a 256
# 4. Update `url` and `sha256` in this file and push to the tap repo.
class Liveaudioserver < Formula
desc "Live audio streaming server (MP3 + AAC + HLS) for macOS"
homepage "https://github.com/dsward2/LiveAudioServer"
url "https://github.com/dsward2/LiveAudioServer/archive/refs/tags/v0.1.2.tar.gz"
sha256 "c5b000fd7965742bab0ea33276b310ce373b1709f5730ef209bdef8f53ccfd2c"
license "Apache-2.0"
head "https://github.com/dsward2/LiveAudioServer.git", branch: "main"
depends_on macos: :ventura
def install
# --disable-sandbox is required for SwiftPM under Homebrew, which
# otherwise can't fetch its own toolchain cache.
#
# libmp3lame is vendored as Frameworks/Mp3Lame.xcframework and consumed
# by SwiftPM as a binary target — no external `lame` dependency needed.
system "swift", "build",
"--configuration", "release",
"--disable-sandbox"
bin.install ".build/release/LiveAudioServer" => "liveaudioserver"
end
test do
# `--version` is a self-contained command — no streaming, no ports.
assert_match "LiveAudioServer", shell_output("#{bin}/liveaudioserver --version")
end
end