Files
chromebrew/packages/youtube_dl.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

28 lines
890 B
Ruby

require 'package'
class Youtube_dl < Package
description 'Command-line program to download videos from YouTube.com and other video sites'
homepage 'https://youtube-dl.org/'
version '2021.12.17'
license 'public-domain'
compatibility 'all'
source_url 'https://github.com/ytdl-org/youtube-dl.git'
git_hashtag version
binary_compression 'tar.zst'
binary_sha256({
aarch64: '67493026c59e65899994e63542d9c032c2ab85d443b57cca9933280e81d7f6a3',
armv7l: '67493026c59e65899994e63542d9c032c2ab85d443b57cca9933280e81d7f6a3',
i686: '4097a2d204d79d05e2b8acba94c13c5cbce0e3e0391f4a7454ca83b03e9d3a1e',
x86_64: '8c1848f320b4f82d25eafaba316eb0858a33318dde94dbaa6fdf8c1feaa6d41f'
})
def self.build
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
end
def self.install
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
end
end