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-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-02-26 08:36:18 +08:00
pkgver=20110226
pkgrel=1
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')
depends=("kdelibs>=${_kdever}" "kdebase-workspace>=${_kdever}" 'networkmanager>=0.8.2')
makedepends=('subversion' 'cmake' 'python' 'automoc4')
replaces=('networkmanagement-networkmanager-plasmoid' 'networkmanagement-knetworkmanager-kde4')
install=${pkgname}.install
2011-02-26 08:36:18 +08:00
source=("http://chakra-project.org/sources/${pkgname}/${pkgname}-${pkgver}.tar.xz"
md5sums=('826923cde4d9904dd8a6750beac98e39') # networkmanagement-20110226.tar.xz
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() {
2011-02-26 08:36:18 +08:00
mkdir -p $srcdir/build
2010-05-22 06:25:44 +08:00
cd $srcdir/build
2011-02-26 08:36:18 +08:00
cmake ../${pkgname} -DCMAKE_INSTALL_PREFIX=${_installprefix} \
2010-05-22 06:25:44 +08:00
-DDBUS_SYSTEM_POLICY_DIR=/etc/dbus-1/system.d \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_SKIP_RPATH=ON \
-DINSTALL_KNM_AUTOSTART=OFF \
2010-05-22 06:25:44 +08:00
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make || return 1
2011-02-26 08:36:18 +08:00
}
package() {
cd $srcdir/build
make DESTDIR=${pkgdir} install || return 1
2010-05-22 06:25:44 +08:00
}