# Maintainer: Llewelyn Trahaearn # Contributor: Jan Alexander Steffens (heftig) # Contributor: Gaetan Bisson # Contributor: Douglas Soares de Andrade pkgname=lib32-avahi pkgver=0.8+22+gfd482a7 pkgrel=1 pkgdesc='Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour (32-bit)' arch=('x86_64') url='https://github.com/lathiat/avahi' license=('LGPL') depends=("${pkgname#lib32-}" 'expat' 'lib32-dbus' 'lib32-gdbm' 'lib32-glib2' 'lib32-libcap' 'lib32-libdaemon') makedepends=('git' 'gobject-introspection' 'libevent' 'lib32-libevent' 'lib32-gtk3' 'python-dbus' 'python-gobject' 'xmltoman') optdepends=('lib32-gtk3: gtk3 bindings' 'lib32-libevent: libevent bindings') options=(!emptydirs) _commit=fd482a74625b8db8547b8cfca3ee3d3c6c721423 # master source=("git+$url#tag=$_commit" 282.patch 0001-Fix-avahi-browse-Invalid-service-type.patch) sha512sums=('SKIP' '26b1e74450944f5c4385d2f5df18523cfb953e4138f6d9e81061a626453e40d8ed2dee44535cfbb547848eefb3cdca408009d5f0e0c465f144a8803db8593b46' 'e39c17d9a5d534784a3c7b6947da994d0ab5fa354aac5cecde6d3baaa2bb3d57f02f91cc6fb68885a4e98f44efe615b01631a4c7af752aa26f35082cfcc0ddd7') prepare() { cd ${pkgname#lib32-} # https://bugs.archlinux.org/task/68518 # https://github.com/lathiat/avahi/pull/282 git apply -3 ../282.patch # https://bugs.archlinux.org/task/71781 # https://github.com/lathiat/avahi/issues/212 git apply -3 ../0001-Fix-avahi-browse-Invalid-service-type.patch NOCONFIGURE=1 ./autogen.sh } pkgver() { cd ${pkgname#lib32-} git describe --tags | sed 's/^v//;s/-/+/g' } build() { # Modify environment to generate 32-bit ELF. Respects flags defined in makepkg.conf export CFLAGS="-m32 ${CFLAGS}" export CXXFLAGS="-m32 ${CXXFLAGS}" export LDFLAGS="-m32 ${LDFLAGS}" export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' # export PKG_CONFIG_LIBDIR='/usr/lib32/pkgconfig' cd ${pkgname#lib32-} ./configure \ --build=i686-pc-linux-gnu \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --sbindir=/usr/bin \ --libdir=/usr/lib32 \ --disable-mono \ --disable-qt5 \ --enable-compat-libdns_sd \ --with-distro=archlinux \ --with-avahi-priv-access-group=network \ --with-autoipd-user=avahi \ --with-autoipd-group=avahi \ --with-dbus-sys=/usr/share/dbus-1/system.d \ --with-systemdsystemunitdir=/usr/lib/systemd/system sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } package() { cd ${pkgname#lib32-} make DESTDIR="${pkgdir}" install # Remove conflicting files. rm -rf "${pkgdir}"/{etc,usr/{share,lib,include,bin}} }