Files
chromebrew/packages/libbytesize.rb
Maximilian Downey Twiss f6b6cab229 Rename autotools constants to fall in line with the rest of crew (#10442)
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS

* Rename build_extras and install_extras to configure_build_extras and configure_install_extras
2024-09-09 18:21:58 -05:00

31 lines
1.0 KiB
Ruby

require 'package'
class Libbytesize < Package
description 'A tiny library providing a C "class" for working with arbitrary big sizes in bytes'
homepage 'https://github.com/storaged-project/libbytesize'
version '2.6'
license 'LGPL-2.1+'
compatibility 'all'
source_url 'https://github.com/storaged-project/libbytesize/releases/download/2.6/libbytesize-2.6.tar.gz'
source_sha256 'efaa2b35b2bb3b52bf7b4ff5d0ed2c5c61360a5196053808d615dd0aa2cf0741'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '9746d6b1aeac798fb7ccf61f966a8b5caa9e27784a50d6ec1705fa8f08ceccc4',
armv7l: '9746d6b1aeac798fb7ccf61f966a8b5caa9e27784a50d6ec1705fa8f08ceccc4',
i686: '66660b4944b4bbf126f48a5417fae85d5e92548b7ccecc115b564305873132f7',
x86_64: 'c586018630fefbd83711b0818a718c3d72cc92b3db4d12372b5b88d19b8756aa'
})
depends_on 'gawk' => :build
def self.build
system "./configure #{CREW_CONFIGURE_OPTIONS} --with-gtk-doc=no"
system 'make'
end
def self.install
system "make install DESTDIR=#{CREW_DEST_DIR}"
end
end