#$Id: PKGBUILD 92495 2013-06-07 09:28:54Z tomegun $ # Maintainer: Daniel Wallace # Contributor: Lucas De Marchi pkgname=connman pkgver=1.15 pkgrel=1 pkgdesc="Wireless LAN network manager" url="http://connman.net/" arch=('i686' 'x86_64' 'mips64el') license=('GPL2') depends=('dbus-core' 'iptables' 'glib2' 'gnutls') conflicts=('openresolv') optdepends=('bluez: Support for Bluetooth devices' 'wpa_supplicant: For WiFi devices') makedepends=('bluez' 'wpa_supplicant' 'openconnect' 'openvpn') options=('!libtool') source=("http://www.kernel.org/pub/linux/network/${pkgname}/${pkgname}-${pkgver}.tar.bz2" 'allow_group_network.diff') md5sums=('d68ec364b4b3fba3131defe074c768dc' 'a8d22ee089fb0ed725130d16ad393047') prepare(){ cd "${srcdir}/${pkgname}-${pkgver}" patch -Np1 -i "${srcdir}/allow_group_network.diff" } build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --bindir=/usr/bin \ --sbindir=/usr/bin \ --with-systemdunitdir=/usr/lib/systemd/system \ --enable-threads \ --enable-openconnect \ --enable-vpnc \ --enable-openvpn \ --enable-polkit \ --enable-client make } package(){ make -C "${srcdir}/${pkgname}-${pkgver}" DESTDIR="${pkgdir}" install install -Dm755 "$srcdir/$pkgname-$pkgver/client/${pkgname}ctl" "$pkgdir/usr/bin/${pkgname}ctl" find "$pkgdir/usr" -name \*.service -exec sed -i 's/s\(bin\)/\1/' {} + }