mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* version.rb: Allow rust package version to be updated. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update xdg_base package. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * perl_locale_messages => perl_libintl_perl Signed-off-by: Satadru Pramanik <satadru@gmail.com> * popt => 1.19 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * mawk => 1.3.4-20250131 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * rdfind => 1.7.0 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * doxygen => 1.14.0 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Fixup anitya mappings and package versions. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * libunbound => 1.24.0 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * progress => 0.17 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update ag Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust packages.yml Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add gnu_time to essential packages since it is used in tests. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * suggested changes Signed-off-by: Satadru Pramanik <satadru@gmail.com> * more suggested changes Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com>
40 lines
1.6 KiB
Ruby
40 lines
1.6 KiB
Ruby
require 'buildsystems/cmake'
|
|
|
|
class Zlib < CMake
|
|
description 'zlib is a massively spiffy yet delicately unobtrusive compression library.'
|
|
homepage 'https://www.zlib.net'
|
|
version '1.3.1-3' # Do not use @_ver here, it will break the installer.
|
|
# When upgrading zlib, be sure to upgrade minizip in tandem.
|
|
# The following breaks the installer script.
|
|
# puts "#{self} version differs from Minizip version #{Minizip.version}".orange if @_ver != Minizip.version
|
|
license 'zlib'
|
|
compatibility 'all'
|
|
source_url "https://www.zlib.net/zlib-#{version.split('-').first}.tar.gz"
|
|
source_sha256 '9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '91195628001afc8a237774386e6ca494fa820f073985355544a0bb177389d7aa',
|
|
armv7l: '91195628001afc8a237774386e6ca494fa820f073985355544a0bb177389d7aa',
|
|
i686: '463a48ec367bc9920178643139a3eabe3c648ed513f35c18c5e28ea5040f664b',
|
|
x86_64: 'dde89b4ba95675c8e3fa91123f6c5b35712571970b5ddcae6f3d25d25162b1b2'
|
|
})
|
|
|
|
depends_on 'glibc' # R
|
|
|
|
cmake_options "#{CREW_CMAKE_OPTIONS.gsub('-mfpu=vfpv3-d16', '-mfpu=neon-fp16')} -Wno-dev"
|
|
|
|
run_tests
|
|
|
|
def self.patch
|
|
system "sed -i 's,CMAKE_INSTALL_PREFIX}/lib,CMAKE_INSTALL_PREFIX}/#{ARCH_LIB},g' CMakeLists.txt"
|
|
system "sed -i 's,CMAKE_INSTALL_PREFIX}/share/pkgconfig,CMAKE_INSTALL_PREFIX}/#{ARCH_LIB}/pkgconfig,g' CMakeLists.txt"
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} #{CREW_NINJA} -C builddir install"
|
|
# Remove static library.
|
|
FileUtils.rm "#{CREW_DEST_LIB_PREFIX}/libz.a"
|
|
end
|
|
end
|