Files
chromebrew/packages/libmbedtls.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* 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)
2024-01-25 11:03:31 -05:00

25 lines
900 B
Ruby

require 'buildsystems/cmake'
class Libmbedtls < CMake
description 'An open source, portable, easy to use, readable and flexible SSL library'
homepage 'https://tls.mbed.org/'
version '3.4.1'
license 'Apache-2.0'
compatibility 'all'
source_url 'https://github.com/ARMmbed/mbedtls/archive/v3.4.1.tar.gz'
source_sha256 'a420fcf7103e54e775c383e3751729b8fb2dcd087f6165befd13f28315f754f5'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'c96084c1a2d4b6781c349b1242a1cdeb156e789aebd74685ac1630bfc7fd68db',
armv7l: 'c96084c1a2d4b6781c349b1242a1cdeb156e789aebd74685ac1630bfc7fd68db',
i686: '026d9cffdfe2d199a6c291b2e4a3f1d441a0f10c04f068ad7f9533544d492051',
x86_64: '45cab571d615d7efe2a550a6647bbef370ea53d7cde330f5cf604d13ba2d869e'
})
depends_on 'glibc' # R
cmake_options '-DUSE_SHARED_MBEDTLS_LIBRARY=ON \
-DENABLE_ZLIB_SUPPORT=ON'
end