desktop/tools-pkg-networkmanagement/PKGBUILD

69 lines
1.7 KiB
Bash
Raw Normal View History

2010-05-22 06:25:44 +08:00
#
# 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>
2011-11-25 07:44:12 +08:00
# contributor : Radu Andries <admiral0[at]tuxfamily[dot]org>
2010-05-22 06:25:44 +08:00
2011-02-26 08:36:18 +08:00
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
#
# package info
#
pkgname=('networkmanagement')
arch=('i686' 'x86_64')
2011-11-25 07:44:12 +08:00
pkgver=0.8.95
pkgrel=1
2011-02-26 08:36:18 +08:00
pkgdesc="KDE SC networkmanager plasmoid"
url="http://plasma.kde.org"
2010-05-22 06:25:44 +08:00
license=('GPL')
2011-02-26 08:36:18 +08:00
options=('force')
2011-11-25 07:44:12 +08:00
depends=("kdelibs" "kde-workspace" 'networkmanager>=0.9')
2011-02-26 08:43:58 +08:00
makedepends=('subversion' 'cmake' 'python' 'automoc4' 'mobile-broadband-provider-info')
2011-11-25 07:44:12 +08:00
optdepends=('mobile-broadband-provider-info: allow to add new mobile connection'
'openconnect: allow connection to openconnect VPN')
2011-02-26 08:36:18 +08:00
replaces=('networkmanagement-networkmanager-plasmoid' 'networkmanagement-knetworkmanager-kde4')
install=${pkgname}.install
2011-11-25 07:44:12 +08:00
source=("ftp://ftp.kde.org/pub/kde/unstable/networkmanagement/${pkgver}/src/networkmanagement-${pkgver}.tar.bz2")
md5sums=('14f4051446a33be9bd46b34763acd760')
2010-05-22 06:25:44 +08:00
2011-02-26 08:36:18 +08:00
# 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
#
2010-05-22 06:25:44 +08:00
build() {
cd "${srcdir}"
mkdir build
cd build
2011-11-25 07:44:12 +08:00
cmake ../networkmanagement-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DDBUS_SYSTEM_POLICY_DIR=/etc/dbus-1/system.d
make
2011-02-26 08:36:18 +08:00
}
package() {
cd ${srcdir}/build
make DESTDIR=${pkgdir} install
2010-05-22 06:25:44 +08:00
}