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 Sep 21st, 2011  |  syntax: None  |  size: 0.72 KB  |  views: 82  |  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=granite-bzr
  2. pkgver=latest
  3. pkgrel=1
  4. pkgdesc="A development library by the elementary Project."
  5. arch=(i686 x86_64)
  6. url=https://launchpad.net/granite
  7. license=(GPL)
  8. depends=('glib2' 'gobject-introspection' 'gtk3' 'vala-git')
  9. makedepends=('bzr' 'cmake')
  10. provides=(granite)
  11.  
  12. _bzrtrunk="lp:granite"
  13. _bzrmod="granite"
  14.  
  15. build()
  16. {
  17.   cd "${srcdir}"
  18.  
  19.   msg "Connecting to the server...."
  20.  
  21.   if [ -d ${_bzrmod} ]; then
  22.     bzr up ${_bzrmod}
  23.     msg "The local files are updated."
  24.   else
  25.     bzr co ${_bzrtrunk}
  26.   fi
  27.  
  28.   msg "BZR checkout done or server timeout"
  29.   msg "Starting make..."
  30.  
  31.   cd granite
  32.   mkdir build; cd build
  33.   cmake .. -DCMAKE_INSTALL_PREFIX=/usr
  34.   make
  35.   make DESTDIR="${pkgdir}" install
  36. }
clone this paste RAW Paste Data