mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* initial upgrade * add package libfaudio * libfaudio depends on libsdl2 * faudio: add binaries * add package opencl_headers * add package opencl_icd_loader * add package vkd3d * add opencl binaries * add vkd3d binaries * upgrade wine (builds failing) * Update sources to 7.5 * wine -> 7.6 * update vkd3d and libfaudio * wine -> 7.7 * fix typo * wine -> 8.0 * update deps * lint * lint * cleanup wine package * wine => 8.0 * update packages.yaml * add check to opencl_icd_loader * add check to vkd3d * add wine check * move @xdg_config_home to self.remove Co-authored-by: Satadru Pramanik <satadru@gmail.com>
48 lines
1.7 KiB
Ruby
48 lines
1.7 KiB
Ruby
require 'package'
|
|
|
|
class Libfaudio < Package
|
|
description 'FAudio is an XAudio reimplementation that focuses solely on developing fully accurate DirectX Audio runtime libraries for the FNA project.'
|
|
homepage 'https://fna-xna.github.io/'
|
|
@_ver = '23.01'
|
|
version @_ver
|
|
license 'ZLIB'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/fna-xna/faudio.git'
|
|
git_hashtag @_ver
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libfaudio/23.01_armv7l/libfaudio-23.01-chromeos-armv7l.tar.zst',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libfaudio/23.01_armv7l/libfaudio-23.01-chromeos-armv7l.tar.zst',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libfaudio/23.01_i686/libfaudio-23.01-chromeos-i686.tar.zst',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libfaudio/23.01_x86_64/libfaudio-23.01-chromeos-x86_64.tar.zst'
|
|
})
|
|
binary_sha256({
|
|
aarch64: '44a8d21f66f7c203de84fa23f7a62fb4a0ee9336a70723b1be2c6e07a8ab6b24',
|
|
armv7l: '44a8d21f66f7c203de84fa23f7a62fb4a0ee9336a70723b1be2c6e07a8ab6b24',
|
|
i686: '2a066df72e1e98b6ac9ed469965599afe27db630e4d3df4127edf14a6d41f2e5',
|
|
x86_64: 'ea99d746766103f3ffe67feab001c04428c788a2db2d583edb0e3b5b87947e4b'
|
|
})
|
|
|
|
depends_on 'glibc' # R
|
|
depends_on 'libsdl2' # R
|
|
|
|
def self.build
|
|
FileUtils.mkdir 'builddir'
|
|
Dir.chdir 'builddir' do
|
|
system "cmake -G 'Ninja' #{CREW_CMAKE_OPTIONS} .. \
|
|
-DBUILD_TESTS=ON"
|
|
end
|
|
system 'samu -C builddir'
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} samu -C builddir install"
|
|
end
|
|
|
|
def self.check
|
|
Dir.chdir 'builddir' do
|
|
system './faudio_tests'
|
|
end
|
|
end
|
|
end
|