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 May 2nd, 2011  |  syntax: Bash  |  size: 1.02 KB  |  views: 177  |  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. # Maintainer: Michal Gawronski <dinth1906@gmail.com>
  2. pkgname=dee-bzr
  3. pkgver=281
  4. pkgrel=1
  5. pkgdesc="Libdee is a library that uses DBus to provide objects allowing you to create Model-View-Controller type programs across DBus."
  6. arch=('i686' 'x86_64')
  7. url="https://launchpad.net/dee"
  8. license=('GPL')
  9. depends=('glib2-ubuntu')
  10. makedepends=('bzr' 'vala' 'gobject-introspection' 'gnome-common' 'gtk-doc')
  11. provides=('dee')
  12. conflicts=('dee')
  13.  
  14. _bzrtrunk=lp:dee
  15. _bzrmod=dee
  16.  
  17. build() {
  18.    cd ${srcdir}
  19.  
  20.   msg "Connecting to the server...."
  21.  
  22.   if [ ! -d ./${_bzrmod} ]; then
  23.     bzr co ${_bzrbranch} ${_bzrmod}
  24.   else
  25.     bzr up ${_bzrmod}
  26.   fi
  27.  
  28.   msg "BZR checkout done or server timeout"
  29.   msg "Starting make..."
  30.  
  31.   if [[ -d ${srcdir}/build ]]; then
  32.     msg "Cleaning the previous build directory..."
  33.     rm -rf ${srcdir}/build
  34.   fi
  35.   bzr clone ${srcdir}/${_bzrmod} ${srcdir}/build
  36.   cd ${srcdir}/build
  37.   ./autogen.sh  --prefix=/usr
  38.   make
  39. }
  40.  
  41. package() {
  42.   cd ${srcdir}/build
  43.   make DESTDIR="${pkgdir}" install
  44. }
clone this paste RAW Paste Data