mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -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)
38 lines
1.1 KiB
Ruby
38 lines
1.1 KiB
Ruby
require 'package'
|
|
|
|
class Zeromq < Package
|
|
description 'Fast messaging system built on sockets. C and C++ bindings. aka 0MQ, ZMQ.'
|
|
homepage 'https://zeromq.org/'
|
|
version '4.3.2'
|
|
license 'LGPL-3'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/zeromq/libzmq/releases/download/v4.3.2/zeromq-4.3.2.tar.gz'
|
|
source_sha256 'ebd7b5c830d6428956b67a0454a7f8cbed1de74b3b01e5c33c5378e22740f763'
|
|
binary_compression 'tar.xz'
|
|
|
|
binary_sha256({
|
|
aarch64: '203bef19128bd37bb9320c1413693edaad122804276cb3114e540ab0a77dae3f',
|
|
armv7l: '203bef19128bd37bb9320c1413693edaad122804276cb3114e540ab0a77dae3f',
|
|
i686: '9695e614855a6edb5d0c5ac190ee4dbd6b49dccd6f235f9bc93ffcc70f0e4f9f',
|
|
x86_64: '531fbc84e6d4d4572ae1b4e5e5e84ca63303151d9674cc0e0f79edece7a27d51'
|
|
})
|
|
|
|
depends_on 'libunwind'
|
|
|
|
def self.build
|
|
system './configure',
|
|
"--prefix=#{CREW_PREFIX}",
|
|
"--libdir=#{CREW_LIB_PREFIX}",
|
|
'--disable-dependency-tracking'
|
|
system 'make'
|
|
end
|
|
|
|
def self.check
|
|
system 'make', 'check'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
end
|