make xz an xz package (#10281)

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2024-08-08 17:30:02 -04:00
committed by GitHub
parent 0cb35fee28
commit 5585835890
3 changed files with 10 additions and 9 deletions

View File

@@ -166,7 +166,7 @@ find "${CREW_LIB_PATH}" -mindepth 1 -delete
# Download the chromebrew repository.
curl -L --progress-bar https://github.com/"${OWNER}"/"${REPO}"/tarball/"${BRANCH}" | tar -xz --strip-components=1 -C "${CREW_LIB_PATH}"
BOOTSTRAP_PACKAGES='lz4 zlib zstd xzutils crew_mvdir ruby git ca_certificates libyaml openssl'
BOOTSTRAP_PACKAGES='lz4 zlib xzutils zstd crew_mvdir ruby git ca_certificates libyaml openssl'
# Older i686 systems.
[[ "${ARCH}" == "i686" ]] && BOOTSTRAP_PACKAGES+=' gcc_lib'

View File

@@ -2,7 +2,7 @@
# Defines common constants used in different parts of crew
require 'etc'
CREW_VERSION = '1.49.11'
CREW_VERSION = '1.49.12'
# Kernel architecture.
KERN_ARCH = Etc.uname[:machine]
@@ -40,7 +40,7 @@ else
HOME = File.join(CREW_PREFIX, Dir.home)
end
CREW_ESSENTIAL_PACKAGES = %w[gcc_lib glibc gmp lz4 ruby zlib zstd]
CREW_ESSENTIAL_PACKAGES = %w[gcc_lib glibc gmp lz4 ruby xzutils zlib zstd]
CREW_IN_CONTAINER = File.exist?('/.dockerenv') || ENV.fetch('CREW_IN_CONTAINER', '0').eql?('1')

View File

@@ -3,21 +3,22 @@ require 'buildsystems/cmake'
class Xzutils < CMake
description 'XZ Utils is free general-purpose data compression software with a high compression ratio.'
homepage 'https://tukaani.org/xz/'
version '5.6.2-1'
version '5.6.2-2'
license 'GPL-3'
compatibility 'all'
source_url 'https://github.com/tukaani-project/xz.git'
git_hashtag "v#{version.split('-').first}"
binary_compression 'tar.zst'
binary_compression 'tar.xz'
binary_sha256({
aarch64: 'cab572af14dc5e25b8146ab5d2ba355d91cd9891225d1966b393ff6778d62352',
armv7l: 'cab572af14dc5e25b8146ab5d2ba355d91cd9891225d1966b393ff6778d62352',
i686: '44ffed068ea05a5ba85579765c9ccd807aba7a28838314c82d427edb91eeca99',
x86_64: '3220fe3f8e1189b88a194bb16c99047d44a7c90a6986c6c80889ea291f29b2a5'
aarch64: 'f191a1aed64d6ae45f366f4bdc01c4639bd1168379174f8aaa2acb1ba72732ec',
armv7l: 'f191a1aed64d6ae45f366f4bdc01c4639bd1168379174f8aaa2acb1ba72732ec',
i686: 'd0b23c36859bdef91002cb6ec62c26020dc0fcfa235d44e1034fdfca7d7c5ce8',
x86_64: '87f786c92bf0e18fba5d441c7afffb05174f3c23ac1603e7184e6d61841ed57e'
})
depends_on 'glibc' # R
no_zstd
cmake_options '-DBUILD_SHARED_LIBS=ON'