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

35 lines
1.3 KiB
Ruby

require 'buildsystems/autotools'
class Alsa_lib < Autotools
description 'The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI functionality to the Linux operating system.'
homepage 'https://www.alsa-project.org/main/index.php/Main_Page'
@_ver = '1.2.10'
version "#{@_ver}-py3.12"
license 'LGPL-2.1'
compatibility 'all'
source_url "https://github.com/alsa-project/alsa-lib/archive/v#{@_ver}.tar.gz"
source_sha256 'f55749847fd98274501f4691a2d847e89280c07d40a43cdac43d6443f69fc939'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'eb5d64babfaeb1ebb110207f85e01506e09313cdfce51ff1af7c2f85fa2da80f',
armv7l: 'eb5d64babfaeb1ebb110207f85e01506e09313cdfce51ff1af7c2f85fa2da80f',
i686: '9be05bc6dcc67cdb8d02ca168612f06baf429cd84e24533b99a9b0f9e0b9a907',
x86_64: '6faec883fafbf426ef0570e976a24e4755878ce77c997f346283258130124982'
})
depends_on 'glibc' # R
depends_on 'python3' # L
def self.build
@py_ver = `python -c "import sys; version = '.'.join(map(str, sys.version_info[:2])) ; print(version)"`.chomp
system 'autoreconf -fiv'
system "mold -run ./configure #{CREW_OPTIONS} \
--without-debug \
--disable-maintainer-mode \
--with-pythonlibs=-lpython#{@py_ver} \
--with-pythonincludes=-I#{CREW_PREFIX}/include/python#{@py_ver}"
system 'make'
end
end