Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 30th, 2012  |  syntax: None  |  size: 0.99 KB  |  views: 20  |  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=apiextractor-git
  2. pkgver=20120830
  3. pkgrel=1
  4. pkgdesc="Collects information about libraries from its header files and merges it with user written files (typesystem) describing how the library should be exposed as a binding on the target language."
  5. url="http://www.pyside.org"
  6. arch=('i686' 'x86_64')
  7. license=('LGPL')
  8. depends=('qt>=4.7' 'openssl' 'libxslt' 'libxml2')
  9. makedepends=('cmake' 'automoc4' 'git')
  10. conflicts=("apiextractor")
  11. provides=("apiextractor")
  12.  
  13. _gitroot="git://github.com/PySide/Apiextractor.git"
  14. _gitname="Apiextractor"
  15.  
  16. build(){
  17.     cd "$srcdir"
  18.        
  19.     msg "Connecting to GIT server...."
  20.     if [ -d "${srcdir}/${_gitname}" ] ; then
  21.         cd ${_gitname} && git pull --rebase
  22.     else
  23.         git clone ${_gitroot}
  24.         cd ${_gitname}
  25.     fi
  26.  
  27.     mkdir -p build && cd build
  28.     cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF
  29.     make
  30. }
  31.  
  32. package(){
  33.     cd "$srcdir/$_gitname/build"
  34.     make DESTDIR=$pkgdir install
  35. }
clone this paste RAW Paste Data