mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
54 lines
1.9 KiB
Ruby
54 lines
1.9 KiB
Ruby
require 'package'
|
|
|
|
class Jack < Package
|
|
description 'JACK (JACK Audio Connection Kit) refers to an API that provides a basic infrastructure for audio applications to communicate with each other and with audio hardware.'
|
|
homepage 'https://jackaudio.org/'
|
|
@_ver = '1.9.17'
|
|
version @_ver
|
|
license 'GPL-2+'
|
|
compatibility 'all'
|
|
source_url "https://github.com/jackaudio/jack2/archive/v#{@_ver}.tar.gz"
|
|
source_sha256 '38f674bbc57852a8eb3d9faa1f96a0912d26f7d5df14c11005ad499c8ae352f2'
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/jack/1.9.17_armv7l/jack-1.9.17-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/jack/1.9.17_armv7l/jack-1.9.17-chromeos-armv7l.tar.xz',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/jack/1.9.17_i686/jack-1.9.17-chromeos-i686.tar.xz',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/jack/1.9.17_x86_64/jack-1.9.17-chromeos-x86_64.tar.xz'
|
|
})
|
|
binary_sha256({
|
|
aarch64: 'd18c47ae88f28ada701a4938cf26db6659ed9425006e0a81b887be1f8868a280',
|
|
armv7l: 'd18c47ae88f28ada701a4938cf26db6659ed9425006e0a81b887be1f8868a280',
|
|
i686: '0946a39b386d3f4434e1a4d735342918537f302acfba6641ed888e76c058fae0',
|
|
x86_64: 'f8cf79f4a8402e8c4cdcfe8d31cc9357ba3404d5bfe57a8dea7fac4ec12bd091'
|
|
})
|
|
|
|
depends_on 'dbus'
|
|
depends_on 'alsa_lib'
|
|
depends_on 'libdb'
|
|
depends_on 'libsndfile'
|
|
|
|
def self.patch
|
|
# Set the correct python executable path.
|
|
system "sed -i 's,/usr/bin,#{CREW_PREFIX}/bin,' waf"
|
|
end
|
|
|
|
def self.build
|
|
system "env CFLAGS=-fno-stack-protector \
|
|
./waf configure \
|
|
--dbus \
|
|
--classic \
|
|
--db=yes \
|
|
--alsa=yes \
|
|
--sndfile=yes \
|
|
--autostart=none \
|
|
--prefix=#{CREW_PREFIX} \
|
|
--libdir=#{CREW_LIB_PREFIX}"
|
|
system './waf build'
|
|
end
|
|
|
|
def self.install
|
|
system "./waf install --destdir=#{CREW_DEST_DIR}"
|
|
end
|
|
end
|