# Template file for 'connman' pkgname=connman version=1.31 revision=1 lib32disabled=yes build_style=gnu-configure configure_args="--sbindir=/usr/bin --enable-polkit --enable-client --enable-pie --enable-ethernet --enable-wifi --enable-bluetooth --enable-loopback --enable-nmcompat --enable-openvpn --with-openvpn=/usr/bin/openvpn --enable-openconnect --disable-tools --disable-wispr --with-openconnect=/usr/bin/openconnect" hostmakedepends="automake libtool pkg-config wpa_supplicant iptables" makedepends="libglib-devel dbus-devel iptables-devel gnutls-devel readline-devel" depends="wpa_supplicant" short_desc="Open Source CONNection MANager" maintainer="Juan RP " license="GPL-2" homepage="http://connman.net/" distfiles="${KERNEL_SITE}/network/$pkgname/$pkgname-$version.tar.xz" checksum=88fcf0b6df334796b90e2fd2e434d6f5b36cd6f13b886a119b8c90276b72b8e2 pre_configure() { case "$XBPS_TARGET_MACHINE" in *-musl) for f in ${FILESDIR}/musl/*.patch; do patch -Np1 -i $f done ;; *) export CFLAGS+=" -D_GNU_SOURCE";; esac autoreconf -fi } post_install() { # Install the client connmanctl. vbin client/connmanctl vsv connmand } connman-devel_package() { depends="dbus-devel libglib-devel" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig } }