pkgname=avahi pkgver=0.8 _pkgver=0.8 _commit=ddcc3bc3f928ccfc885b6b3f89dba9b67cb3a82e pkgrel=7 pkgdesc="A multicast/unicast DNS-SD framework" arch=('x86_64') url="http://www.avahi.org/" license=('LGPL') depends=('dbus' 'libcap' 'libdaemon' 'gdbm' 'glib2' 'expat' 'qt5-base' 'python3-gobject3') makedepends=('dbus-python3' 'gobject-introspection' 'intltool') backup=(etc/avahi/avahi-daemon.conf etc/avahi/services/{sftp-,}ssh.service) install=avahi.install options=('!libtool') source=("https://github.com/avahi/avahi/archive/ddcc3bc3f928ccfc885b6b3f89dba9b67cb3a82e.zip" #source=("https://github.com/lathiat/avahi/releases/download/v${_pkgver}/${pkgname}-${_pkgver}.tar.gz" 'python_gdbm.diff' 'build-db') md5sums=('458acc2f549de739b892ba75c3e9e8ca' 'cec7fdc431598e210a269f701e49e346' '426c69131ae0ac0c9813bd103ff98203') prepare() { cd ${pkgname}-${_commit} #patch -p1 -i ${srcdir}/python_gdbm.diff #cp ${srcdir}/build-db service-type-database/ NOCONFIGURE=1 ./autogen.sh } build() { cd ${pkgname}-${_commit} ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ --disable-mono \ --disable-monodoc \ --disable-doxygen-doc \ --disable-xmltoman \ --disable-manpages \ --disable-gtk \ --disable-gtk3 \ --enable-pygobject \ --disable-tests \ --disable-libevent \ --enable-compat-libdns_sd \ --with-distro=none \ --with-avahi-priv-access-group=network \ --with-autoipd-user=avahi \ --with-autoipd-group=avahi \ --with-systemdsystemunitdir=/usr/lib/systemd/system make } package() { cd ${pkgname}-${_commit} make DESTDIR=${pkgdir} install rm -r ${pkgdir}/var/run # avahi-discover is not build (gtk), but installs files rm ${pkgdir}/usr/bin/avahi-discover rm -r ${pkgdir}/usr/share/applications # mdnsresponder compatability #ln -s avahi-compat-libdns_sd/dns_sd.h ${pkgdir}/usr/include/dns_sd.h }