Skip to content

Commit

Permalink
Add ytarchive formula
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniils Petrovs committed Nov 26, 2023
1 parent 5196224 commit 3d98f4f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Formula/ytarchive.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
class Ytarchive < Formula
desc 'Archive live and upcoming Youtube.com live streams'

Check failure on line 2 in Formula/ytarchive.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
homepage 'https://github.com/Kethsar/ytarchive'

Check failure on line 3 in Formula/ytarchive.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
url 'https://github.com/Kethsar/ytarchive/archive/refs/tags/latest.tar.gz'

Check failure on line 4 in Formula/ytarchive.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
version '0.4.0'

Check failure on line 5 in Formula/ytarchive.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
sha256 '10c71af032cb5579ff86c6772e17c23eda66aa797980db6409b4200fa391e78f'

Check failure on line 6 in Formula/ytarchive.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
license 'MIT'

Check failure on line 7 in Formula/ytarchive.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
head 'https://github.com/Kethsar/ytarchive.git', branch: 'dev'

Check failure on line 8 in Formula/ytarchive.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

Check failure on line 8 in Formula/ytarchive.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

depends_on 'go' => :build

Check failure on line 10 in Formula/ytarchive.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
depends_on 'ffmpeg'

Check failure on line 11 in Formula/ytarchive.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

def install
ENV['CGO_ENABLED'] = '0'
system 'go', 'build', *std_go_args(ldflags: '-s -w')
end

test do
system bin / 'ytarchive', '--version'
end
end

0 comments on commit 3d98f4f

Please sign in to comment.