mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 16:08:08 -05:00
* 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)
40 lines
1.2 KiB
Ruby
40 lines
1.2 KiB
Ruby
require 'package'
|
|
|
|
class Libuv < Package
|
|
description 'libuv is a multi-platform support library with a focus on asynchronous I/O.'
|
|
homepage 'https://libuv.org/'
|
|
version '1.44.2'
|
|
license 'BSD, BSD-2, ISC and MIT'
|
|
compatibility 'all'
|
|
source_url "https://dist.libuv.org/dist/v#{version}/libuv-v#{version}.tar.gz"
|
|
source_sha256 'ccfcdc968c55673c6526d8270a9c8655a806ea92468afcbcabc2b16040f03cb4'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'b323b1255d8f8bb03b218cf3c271b16f0e70e2e9d8d7eb350ad7a099785b3552',
|
|
armv7l: 'b323b1255d8f8bb03b218cf3c271b16f0e70e2e9d8d7eb350ad7a099785b3552',
|
|
i686: '7735507974c9e44dd4d92285e62de13917bd8fedaeb4ea3eede2880e25328e75',
|
|
x86_64: '5e2a57c818451af267468a254de305595c86003f1f9160fd13205282cc1ab400'
|
|
})
|
|
|
|
def self.build
|
|
Dir.mkdir 'builddir'
|
|
Dir.chdir 'builddir' do
|
|
system "#{CREW_ENV_OPTIONS} cmake \
|
|
-G Ninja \
|
|
#{CREW_CMAKE_OPTIONS} \
|
|
.."
|
|
end
|
|
system 'samu -C builddir'
|
|
end
|
|
|
|
# udp_multicast_join and udp_multicast_join6 tests fail
|
|
def self.check
|
|
system 'samu -C builddir test || true'
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} samu -C builddir install"
|
|
end
|
|
end
|