This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 17th, 2011  |  syntax: Bash  |  size: 1.38 KB  |  views: 476  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=kdeplasma-applets-networkmanagement-git
  2. pkgver=20110418
  3. pkgrel=1
  4. pkgdesc="KDE4 Network Management plasmoid, git version"
  5. arch=('i686' 'x86_64')
  6. url="http://kde.org/"
  7. license=('GPL')
  8. depends=('kdebase-workspace' 'networkmanager')
  9. makedepends=('cmake'  'python2' 'automoc4' 'git' 'mobile-broadband-provider-info')
  10. optdepends=('mobile-broadband-provider-info: allow to add new mobile connection')
  11. provides=('kdeplasma-applets-networkmanagement')
  12. conflicts=('kdeplasma-applets-networkmanagement')
  13. install=kdeplasma-applets-networkmanagement-git.install
  14.  
  15. _gitroot="git://anongit.kde.org/networkmanagement"
  16. _gitname=networkmanagement
  17.  
  18. build() {
  19.  
  20. cd $srcdir
  21.  
  22.   msg "Connecting to the GIT server...."
  23.  
  24.   if [[ -d $srcdir/$_gitname ]] ; then
  25.     cd $_gitname
  26.     git checkout nm09
  27.     git pull origin
  28.     msg "The local files are updated."
  29.   else
  30.     git clone -b nm09 $_gitroot
  31.   fi
  32.  
  33.   msg "GIT checkout done"
  34.   msg "Starting make..."
  35.   if [[ -d ${srcdir}/${_gitname}-build ]]; then
  36.     msg "Cleaning the previous build directory..."
  37.     rm -rf ${srcdir}/${_gitname}-build
  38.   fi
  39.   mkdir $srcdir/$_gitname-build
  40.   cd $srcdir/$_gitname-build
  41.   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=Release \
  42.                 -DCMAKE_INSTALL_PREFIX=/usr -DDBUS_SYSTEM_POLICY_DIR=/etc/dbus-1/system.d
  43.   make
  44. }
  45.  
  46. package() {
  47.   cd ${srcdir}/$_gitname-build
  48.   make DESTDIR=${pkgdir} install
  49. }
clone this paste RAW Paste Data