summaryrefslogtreecommitdiff
path: root/extra/kdeplasma-applets-networkmanagement/PKGBUILD
blob: f371a1859efae9b0b135af4b45a97f33eac3e3d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $Id: PKGBUILD 105813 2011-01-12 00:25:58Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Jakub Schmidtke <sjakub-at-gmail.com>

pkgname=kdeplasma-applets-networkmanagement
epoch=1
pkgver=git20110323
_commit=986cae8974998213496a8678ad03523dba83e69d
pkgrel=1
pkgdesc="KDE control panel and widget network connections"
arch=('i686' 'x86_64')
url="http://www.kde.org/"
license=('GPL')
depends=('kdebase-workspace' 'networkmanager')
makedepends=('cmake' 'python2' 'automoc4' 'mobile-broadband-provider-info')
optdepends=('mobile-broadband-provider-info: allow to add new mobile connection')
install=${pkgname}.install
source=("${pkgname}-${pkgver}.tar.gz"::"http://quickgit.kde.org/?p=networkmanagement.git&a=snapshot&h=${_commit}"
        'nm-09.patch')
md5sums=('3dc3b2631e0d4e4f578ef20f7802bf04'
         'b7ad3dac9a5022c99dfd2ad0dc8549cb')

build() {
  cd "${srcdir}/networkmanagement"
  patch -p1 -i "${srcdir}/nm-09.patch"

  cd "${srcdir}"
  mkdir build
  cd build
  cmake ../networkmanagement \
    -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
}
md5sums=('8373cd729b12a821b28b483e3e9d253f'
         'c46839bc0503f2dbec76282b8ab163bd')