Advertisement
Guest User

Untitled

a guest
Aug 30th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement