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

34 lines
1002 B
Ruby

require 'package'
class Libmicrodns < Package
description 'libmicrodns is a minimal cross-platform mDNS resolver and announcer.'
homepage 'https://github.com/videolabs/libmicrodns/'
version '0.2.0'
compatibility 'all'
license 'LGPL-2.1'
source_url 'https://github.com/videolabs/libmicrodns.git'
git_hashtag version
binary_compression 'tpxz'
binary_sha256({
aarch64: 'bae91599fad6ad6a9a1018b7d9e81482ead9513096b4606fb7913f9f7a25f007',
armv7l: 'bae91599fad6ad6a9a1018b7d9e81482ead9513096b4606fb7913f9f7a25f007',
i686: '301b452dee5090ddc78f129fdfde28fcf7a5c44d73509054543c04b5b67e4bc9',
x86_64: '2648884537f4174ea224f3e0f5986cbe48b5e9a34358fb62b5d683c4eddbf656'
})
def self.build
system "meson setup #{CREW_MESON_OPTIONS} \
-Dtests=enabled builddir"
system 'samu -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} samu -C builddir install"
end
def self.check
system 'samu -C builddir test'
end
end