Files
chromebrew/packages/alsa_lib.rb
chromebrew-actions[bot] 77abcccd0b 'updater-alsa_utils-1.2.15' (#13884)
* Add unbuilt alsa_utils to updater-alsa_utils-1.2.15

* Adjust builds

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* updater-alsa_utils-1.2.15: Package File Update Run on linux/386 container.

* updater-alsa_utils-1.2.15: Package File Update Run on linux/amd64 container.

* updater-alsa_utils-1.2.15: Package File Update Run on linux/arm/v7 container.

* update deps

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
2025-12-17 22:33:38 +00:00

39 lines
1.5 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'
version "1.2.15-#{CREW_PY_VER}"
license 'LGPL-2.1'
compatibility 'all'
source_url "https://github.com/alsa-project/alsa-lib/archive/v#{version.split('-').first}.tar.gz"
source_sha256 '7226c4da8de1596ee7cd82480999c462c9b6fba98cb40332255049ed9bde9aee'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '0e4a962c02724f98071c1acaad5240c1a64ac03d9cb92e9619873097dbcf694a',
armv7l: '0e4a962c02724f98071c1acaad5240c1a64ac03d9cb92e9619873097dbcf694a',
i686: 'ad372498fe8e2d961a0e0f8ddc236ccef90dec760c8bb51da441bd3ee9bc8a95',
x86_64: '7cfe1b17fd3e3f52ecfab933b2846a670773e171880221d0d24584e4eeff17fd'
})
depends_on 'glibc' # R
depends_on 'python3' # L
def self.patch
patches = [
# https://github.com/alsa-project/alsa-lib/issues/485
['https://github.com/sysfce2/alsa-lib/commit/a068cf08ad67447893b707cddfce31c9cafee643.patch',
'a68bee2ca19cdce724dbbe3540b3f76d991ecf80f70d0e1d895c68856739e247']
]
ConvenienceFunctions.patch(patches)
end
autotools_configure_options <<~OPT
--without-debug \
--disable-maintainer-mode \
--with-pythonlibs=-lpython#{CREW_PY_VER.delete_prefix('py')} \
--with-pythonincludes=-I#{CREW_PREFIX}/include/python#{CREW_PY_VER.delete_prefix('py')}
OPT
end