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

38 lines
1.1 KiB
Ruby

require 'package'
class Utf8proc < Package
description 'a clean C library for processing UTF-8 Unicode data: normalization, case-folding, graphemes, and more'
homepage 'https://julialang.org/utf8proc/'
version '2.7.0'
license 'MIT and custom'
compatibility 'all'
source_url 'https://github.com/JuliaStrings/utf8proc.git'
git_hashtag "v#{version}"
binary_compression 'tpxz'
binary_sha256({
aarch64: 'e39494e5757c24266a70ce9ed250f586e7fe1e6afc57986073cc783f70fe5780',
armv7l: 'e39494e5757c24266a70ce9ed250f586e7fe1e6afc57986073cc783f70fe5780',
i686: '23750d9ea1dee537670e2b5d81a59fa972d30286a2402703af0850510011dfb1',
x86_64: '7a3c31040fb2dcdafdd1de5e7b3c61a4aeb77c38dc59ecb10138fe205da858d3'
})
def self.build
FileUtils.mkdir 'builddir'
Dir.chdir 'builddir' do
system "cmake -G Ninja #{CREW_CMAKE_OPTIONS} \
-DBUILD_SHARED_LIBS=ON \
-DUTF8PROC_ENABLE_TESTING=ON .."
system 'samu'
end
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} samu -C builddir install"
end
def self.check
system 'samu -C builddir test'
end
end