desktop/tools-pkg-networkmanagement/PKGBUILD
2011-11-24 23:44:12 +00:00

69 lines
1.7 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=('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
}