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

42 lines
1.1 KiB
Ruby

require 'package'
class Libzip < Package
description 'libzip is a C library for reading, creating, and modifying zip archives.'
homepage 'https://libzip.org/'
version '1.7.3-1'
license 'BSD'
compatibility 'all'
source_url 'https://libzip.org/download/libzip-1.7.3.tar.xz'
source_sha256 'a60473ffdb7b4260c08bfa19c2ccea0438edac11193c3afbbb1f17fbcf6c6132'
binary_compression 'tar.xz'
binary_sha256({
aarch64: '816fc0aa5940b01c94631f6d4215b2e8990738a51022fe7e7094fa471afd50ff',
armv7l: '816fc0aa5940b01c94631f6d4215b2e8990738a51022fe7e7094fa471afd50ff',
i686: '75cd419eba9935ab1d6580fce78788b1564099f0443ad611de3e236c3b02981a',
x86_64: 'dd16146327e8c8a91d0cdd5b1f2c776657bda33697c2a9e216e6804c115ac06c'
})
depends_on 'bzip2'
def self.build
Dir.mkdir 'builddir'
Dir.chdir 'builddir' do
system "env #{CREW_ENV_OPTIONS} \
cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
.."
system 'ninja'
end
end
def self.check
system 'ninja -C builddir test'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end