Files
chromebrew/packages/libgit2.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

30 lines
957 B
Ruby

require 'buildsystems/cmake'
class Libgit2 < CMake
description 'A portable, pure C implementation of the Git core methods'
homepage 'https://libgit2.org/'
version '1.5.1'
license 'GPL-2-with-linking-exception'
compatibility 'all'
source_url 'https://github.com/libgit2/libgit2.git'
git_hashtag "v#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: '41bfb7566d34afa5c07d59e28ca1734a43c8b8049903d5d2faed644506abb40e',
armv7l: '41bfb7566d34afa5c07d59e28ca1734a43c8b8049903d5d2faed644506abb40e',
i686: 'c22cdf93057e33fbf8109c2be948cde27b6d1f42db173dab2213e04cf083a712',
x86_64: 'dd634a7a8b0dbc4c25fd9c5e329f6e95670db8dace736f14bfc4f667deaf669c'
})
depends_on 'glibc' # R
depends_on 'libssh2' # R
depends_on 'openssl' # R
depends_on 'pcre' # R
depends_on 'python3' # L
depends_on 'zlibpkg' # R
cmake_options '-DUSE_SSH=ON -DUSE_BUNDLED_ZLIB=OFF'
# Tests #3 and #8 fail in containers
end