Files
chromebrew/packages/alsa_utils.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

44 lines
1.3 KiB
Ruby

require 'package'
class Alsa_utils < Package
description 'The Advanced Linux Sound Architecture (ALSA) - utilities'
homepage 'https://github.com/alsa-project/alsa-utils'
version '1.2.9'
license 'GPL-2'
compatibility 'x86_64 aarch64 armv7l'
source_url "https://github.com/alsa-project/alsa-utils/archive/v#{version}.tar.gz"
source_sha256 'fde581549326489e9acb2b2d9ddcb146ee85a1698b817f7f4891f49c9f6fc11f'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '7480e0f374071248b7bb7f3d5b4bf7b033f614303096707501836df0778aa0d9',
armv7l: '7480e0f374071248b7bb7f3d5b4bf7b033f614303096707501836df0778aa0d9',
x86_64: 'f419d655bbc28638878231d02d69e4e17c1dc045ec9625167c9c805ee96e7633'
})
depends_on 'alsa_lib' # R
depends_on 'cras' # L
depends_on 'glibc' # R
depends_on 'libsamplerate' # R
depends_on 'ncurses' # R
def self.patch
downloader 'https://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess', 'SKIP'
downloader 'https://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub', 'SKIP'
system 'autoreconf -fiv'
end
def self.build
system "mold -run ./configure #{CREW_OPTIONS}"
end
def self.check
# This takes several hours to run!
# system 'make', 'check'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end