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

31 lines
998 B
Ruby

require 'package'
class Libdnet < Package
description 'libdnet provides a simplified, portable interface to several low-level networking routines.'
homepage 'https://github.com/ofalk/libdnet'
version '1.16.3'
license 'LGPL-2'
compatibility 'all'
source_url 'https://github.com/ofalk/libdnet/archive/libdnet-1.16.3.tar.gz'
source_sha256 '83171a9f6e96d7a5047d6537fce4c376bdf6d867f8d49cf6ba434a0f3f7b45c1'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '29464e04c86cca3a2e2a4759a01643eeb0cb914d323e10041d89ea33b420cbcb',
armv7l: '29464e04c86cca3a2e2a4759a01643eeb0cb914d323e10041d89ea33b420cbcb',
i686: '5000d68a79037ab04b9e3a5c0a23e473f34917ee7de38476c0ad099ef825a8d8',
x86_64: 'db79eb40216c5bfafdef327f9a368c37c9cd524e043203477ab2cc9558610ca1'
})
depends_on 'check' => :build
def self.build
system "./configure #{CREW_OPTIONS}"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end