termux-packages/packages/avahi/build.sh

32 lines
921 B
Bash
Raw Normal View History

2021-11-24 17:09:27 +01:00
TERMUX_PKG_HOMEPAGE=https://www.avahi.org/
TERMUX_PKG_DESCRIPTION="A system for service discovery on a local network via mDNS/DNS-SD"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.8
2022-01-26 13:12:15 +01:00
TERMUX_PKG_REVISION=4
2021-11-24 17:09:27 +01:00
TERMUX_PKG_SRCURL=https://github.com/lathiat/avahi/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=c15e750ef7c6df595fb5f2ce10cac0fee2353649600e6919ad08ae8871e4945f
2022-01-19 18:01:05 +01:00
TERMUX_PKG_DEPENDS="dbus, glib, libandroid-glob, libcap, libdaemon, libevent, libexpat"
2021-11-24 17:09:27 +01:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--enable-compat-libdns_sd
2022-01-19 18:01:05 +01:00
--enable-dbus
2021-11-24 17:09:27 +01:00
--disable-gdbm
--disable-gtk3
2022-01-19 18:01:05 +01:00
--disable-mono
2021-11-24 17:09:27 +01:00
--disable-pygobject
2022-01-19 18:01:05 +01:00
--disable-python
--disable-python-dbus
2021-11-24 17:09:27 +01:00
--disable-qt5
--with-distro=none
ac_cv_func_chroot=no
2021-11-24 17:09:27 +01:00
"
termux_step_pre_configure() {
autoreconf -fi
LDFLAGS+=" -landroid-glob"
}
termux_step_post_make_install() {
ln -sf avahi-compat-libdns_sd/dns_sd.h $TERMUX_PREFIX/include/dns_sd.h
}