Files
chromebrew/packages/avahi.rb
Maximilian Downey Twiss eb14c41653 Remove compatibility from packages with incompatible dependencies (#9458)
* Remove i686 compatibility from packages with dependencies incompatible with i686

* Remove armv7l compatibility from packages with dependencies incompatible with arvm7l

* Abort builds/installs if the package has incompatible dependencies
2024-03-11 13:09:12 -04:00

46 lines
1.3 KiB
Ruby

require 'package'
class Avahi < Package
description 'Avahi is a system which facilitates service discovery on a local network via the mDNS/DNS-SD protocol suite.'
homepage 'http://www.avahi.org/'
version '0.8-4'
license 'LGPL-2.1'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://github.com/lathiat/avahi/releases/download/v0.8/avahi-0.8.tar.gz'
source_sha256 '060309d7a333d38d951bc27598c677af1796934dbd98e1024e7ad8de798fedda'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '44967482fa6955e784d164cbfa534d54c3498705c71a12748fdfc4dc865ea8b6',
armv7l: '44967482fa6955e784d164cbfa534d54c3498705c71a12748fdfc4dc865ea8b6',
x86_64: '7eebce85f0689787cbc42121b9f0052a7b9153f92a8cbbba233badf6dba9a839'
})
depends_on 'dbus' # R
depends_on 'glib' # R
depends_on 'libcap' => :build
depends_on 'libdaemon' # R
depends_on 'libevent' # R
def self.build
system "./configure \
#{CREW_OPTIONS} \
--with-dbus-sys=#{CREW_PREFIX}/share/dbus-1 \
--with-distro=none \
--disable-mono \
--disable-monodoc \
--disable-gtk \
--disable-gtk3 \
--disable-qt3 \
--disable-qt4 \
--disable-qt5 \
--disable-python \
--disable-xmltoman"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end