void-packages/srcpkgs/connman/template
2015-05-31 16:56:05 +02:00

48 lines
1.4 KiB
Bash

# Template file for 'connman'
pkgname=connman
version=1.29
revision=3
lib32disaled=yes
build_options="systemd"
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/sbin/openconnect
$(vopt_if systemd --with-systemdunitdir=/usr/lib/systemd/system)"
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 <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://connman.net/"
distfiles="${KERNEL_SITE}/network/$pkgname/$pkgname-$version.tar.xz"
checksum=2a5a69693566f7fd59b2e677fa89356ada6d709998aa665caef8707b1e7a8594
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
}
}