void-packages/srcpkgs/connman/template

47 lines
1.3 KiB
Bash
Raw Normal View History

# Template file for 'connman'
pkgname=connman
2015-04-21 07:28:44 +02:00
version=1.29
2015-06-03 23:26:24 +02:00
revision=5
2014-04-15 09:55:37 +02:00
lib32disaled=yes
build_style=gnu-configure
2015-05-31 16:56:05 +02:00
configure_args="--sbindir=/usr/bin
--enable-polkit --enable-client --enable-pie --enable-ethernet
2012-10-12 09:36:26 +02:00
--enable-wifi --enable-bluetooth --enable-loopback --enable-nmcompat
--enable-openvpn --with-openvpn=/usr/bin/openvpn --enable-openconnect
2015-06-03 23:26:24 +02:00
--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"
2014-01-04 11:25:09 +01:00
depends="wpa_supplicant"
short_desc="Open Source CONNection MANager"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2012-05-15 18:37:10 +02:00
license="GPL-2"
2012-07-09 23:21:16 +02:00
homepage="http://connman.net/"
distfiles="${KERNEL_SITE}/network/$pkgname/$pkgname-$version.tar.xz"
2015-04-21 07:28:44 +02:00
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.
2014-09-08 10:52:56 +02:00
vbin client/connmanctl
2014-10-13 13:12:20 +02:00
vsv connmand
}
connman-devel_package() {
2013-04-26 05:36:37 +02:00
depends="dbus-devel libglib-devel"
2013-09-03 09:25:06 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}