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 Feb 8th, 2011  |  syntax: Bash  |  size: 0.92 KB  |  views: 155  |  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=akonadi-git
  2. pkgver=20110208
  3. pkgrel=1
  4. pkgdesc="Part of KDE4 Support"
  5. arch=('i686' 'x86_64')
  6. url="http://www.kde.org"
  7. license=('GPL')
  8. depends=('shared-mime-info' 'boost-libs' 'mysql' 'soprano-git')
  9. makedepends=('pkgconfig' 'cmake' 'automoc4' 'boost')
  10.  
  11. _gitroot="git://anongit.kde.org/akonadi"
  12. _gitname="akonadi"
  13.  
  14. build() {
  15. . /etc/profile.d/kde-git.sh
  16. cd $srcdir
  17.   msg "Connecting to the GIT server...."
  18.  
  19.   if [[ -d $srcdir/$_gitname ]] ; then
  20.     cd $_gitname
  21.     git pull origin
  22.     msg "The local files are updated."
  23.   else
  24.     git clone $_gitroot
  25.   fi
  26.  
  27.   msg "GIT checkout done"
  28.   msg "Starting make..."
  29.  
  30.  
  31.   mkdir $srcdir/$_gitname-build
  32.  
  33.   cd $srcdir/$_gitname-build
  34.  
  35.   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=/opt/kde4
  36.   make
  37. }
  38.  
  39. package() {
  40.   cd ${srcdir}/$_gitname-build
  41.   make DESTDIR=${pkgdir} install
  42.   rm -r $srcdir/$_gitname-build
  43. }
clone this paste RAW Paste Data