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 Dec 12th, 2012  |  syntax: Bash  |  size: 1.18 KB  |  views: 56  |  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. # Contributor: Sebastian Schmitt <zerbling-at-gogglemail-dot-com>
  2.  
  3. pkgname=qbs-git
  4. conflicts=('qbs')
  5. replaces=('qbs')
  6. pkgver=20121211
  7. pkgrel=1
  8. pkgdesc="Qt Build system"
  9. arch=("i686" "x86_64")
  10. url="http://labs.qt.nokia.com/2012/02/15/introducing-qbs/"
  11. license=('GPL2' 'LGPL2')
  12. depends=('qt')
  13. makedepends=('qt' 'docbook-xsl' 'git')
  14. optdepends=("dot: for build graph")
  15.  
  16. _gitroot="git://gitorious.org/qt-labs/qbs.git"
  17. _gitname="qbs"
  18.  
  19. source=()
  20. md5sums=()
  21.  
  22. build() {
  23.   cd ${srcdir}
  24.   msg "Connecting to GIT server...."
  25.  
  26.   if [ -d ${_gitname}/.git ] ; then
  27.     (
  28.     cd ${_gitname}
  29.  
  30.     # Change remote url to anongit
  31.     if [ -z $( git branch -v | grep anongit ) ] ; then
  32.         git remote set-url origin ${_gitroot}
  33.     fi
  34.    
  35.     git pull origin
  36.     msg "The local files are updated."
  37.     )
  38.   else
  39.     git clone ${_gitroot} ${_gitname}
  40.   fi
  41.  
  42.   msg "GIT checkout done or server timeout"
  43.   msg "Starting make..."
  44.  
  45.   cd ${_gitname}
  46.   qmake -r qbs.pro
  47.   make
  48.   make docs
  49. }
  50.  
  51. package(){
  52.   cd ${srcdir}/${_gitname}
  53.   make INSTALL_ROOT="${pkgdir}" install
  54.  
  55.   ## One of libraries for strigi casuses problems with m4v files
  56.   #rm -rf ${pkgdir}/usr/lib/strigi
  57. }
clone this paste RAW Paste Data