# # Chakra Packages for Chakra, part of chakra-project.org # # maintainer (i686): Phil Miller # maintainer (x86_64): Manuel Tortosa # contributor : Radu Andries # include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf # # package info # pkgname=('networkmanagement') arch=('i686' 'x86_64') pkgver=0.8.95 pkgrel=1 pkgdesc="KDE SC networkmanager plasmoid" url="http://plasma.kde.org" license=('GPL') options=('force') depends=("kdelibs" "kde-workspace" 'networkmanager>=0.9') makedepends=('subversion' 'cmake' 'python' 'automoc4' 'mobile-broadband-provider-info') optdepends=('mobile-broadband-provider-info: allow to add new mobile connection' 'openconnect: allow connection to openconnect VPN') replaces=('networkmanagement-networkmanager-plasmoid' 'networkmanagement-knetworkmanager-kde4') install=${pkgname}.install source=("ftp://ftp.kde.org/pub/kde/unstable/networkmanagement/${pkgver}/src/networkmanagement-${pkgver}.tar.bz2") md5sums=('14f4051446a33be9bd46b34763acd760') # create tarball: source PKGBUILD && mksource mksource() { rm -vRf ${pkgname} git clone git://anongit.kde.org/${pkgname} cd ${pkgname} git checkout ${pkgver} cd .. rm -vRf ${pkgname}/.git pushd ${pkgname} popd tar -cvJf ${pkgname}-${pkgver}.tar.xz ${pkgname}/* md5sum ${pkgname}-${pkgver}.tar.xz } # # build function # build() { cd "${srcdir}" mkdir build cd build cmake ../networkmanagement-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DDBUS_SYSTEM_POLICY_DIR=/etc/dbus-1/system.d make } package() { cd ${srcdir}/build make DESTDIR=${pkgdir} install }