desktop/kdeplasma-applets-networkmanagement/PKGBUILD
2011-11-28 14:05:53 +00:00

73 lines
1.9 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# contributor : Radu Andries <admiral0[at]tuxfamily[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
#
# package info
#
pkgname=('kdeplasma-applets-networkmanagement')
arch=('i686' 'x86_64')
pkgver=0.8.98
pkgrel=1
pkgdesc="KDE SC networkmanager plasmoid"
url="http://plasma.kde.org"
license=('GPL')
options=('force')
depends=('kdebase-workspace' 'networkmanager>=0.9')
makedepends=('cmake' 'python2' 'automoc4' 'mobile-broadband-provider-info'
'openconnect')
optdepends=('mobile-broadband-provider-info: Database of mobile broadband service providers'
'openconnect: Cisco AnyConnect compatible VPN client')
replaces=('networkmanagement' 'networkmanagement-networkmanager-plasmoid' 'networkmanagement-knetworkmanager-kde4')
conficts=('networkmanagement' 'networkmanagement-networkmanager-plasmoid' 'networkmanagement-knetworkmanager-kde4')
provides=("networkmanagement=${pkgver}")
install=${pkgname}.install
source=("ftp://ftp.kde.org/pub/kde/unstable/networkmanagement/${pkgver}/src/networkmanagement-${pkgver}.tar.bz2")
md5sums=('e730805567a771506cb18c0a825738ef')
# 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
}