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)
32 lines
1.1 KiB
Ruby
32 lines
1.1 KiB
Ruby
require 'package'
|
|
|
|
class Serf < Package
|
|
description 'The serf library is a high performance C-based HTTP client library built upon the Apache Portable Runtime (APR) library.'
|
|
homepage 'https://serf.apache.org/'
|
|
version '1.3.9-2'
|
|
license 'Apache-2.0'
|
|
compatibility 'all'
|
|
source_url 'https://www.apache.org/dist/serf/serf-1.3.9.tar.bz2'
|
|
source_sha256 '549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc'
|
|
binary_compression 'tar.xz'
|
|
|
|
binary_sha256({
|
|
aarch64: 'd53554622ffbf45298ca579a698f0f9943cf96db6191e8c4967fc46bfea7900f',
|
|
armv7l: 'd53554622ffbf45298ca579a698f0f9943cf96db6191e8c4967fc46bfea7900f',
|
|
i686: '07de71d6b89e563ff00cce86302238a7174b913590e5aa9aaca272627a8314bd',
|
|
x86_64: 'ca660768a60708d2c5acd2d88fa885dc23e302ce4b972d13e3ec585e94c1f1b2'
|
|
})
|
|
|
|
depends_on 'scons'
|
|
depends_on 'apr_util'
|
|
depends_on 'openssl'
|
|
|
|
def self.build
|
|
system "scons APR=#{CREW_PREFIX} APU=#{CREW_PREFIX} OPENSSL=#{CREW_PREFIX}/include/openssl PREFIX=#{CREW_PREFIX} LIBDIR=#{CREW_LIB_PREFIX}"
|
|
end
|
|
|
|
def self.install
|
|
system "scons install --install-sandbox=#{CREW_DEST_DIR}"
|
|
end
|
|
end
|