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

avogadro-git PKGBUILD

By: a guest on May 20th, 2011  |  syntax: Bash  |  size: 1.08 KB  |  views: 17  |  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:  Xyne <ac xunilhcra enyx, backwards>
  2.  
  3. pkgname=avogadro-git
  4. pkgver=20110521
  5. pkgrel=1
  6. pkgdesc="An advanced molecular editor based on Qt"
  7. arch=('i686' 'x86_64')
  8. url="http://avogadro.openmolecules.net/wiki/Main_Page"
  9. license=('GPL2')
  10. depends=('eigen' 'openbabel' 'python2-qt' 'boost-libs' 'glew' 'python-numpy')
  11. makedepends=('cmake' 'boost' 'git' 'sip')
  12. conflicts=('avogadro')
  13. provides=('avogadro')
  14.  
  15. _gitroot="git://github.com/cryos/avogadro.git"
  16. _gitname="avogadro"
  17.  
  18.  
  19. build() {
  20.   cd "$srcdir"
  21.  
  22.   if [ -d "$srcdir/$_gitname" ] ; then
  23.     cd "$_gitname" && git pull origin
  24.   else
  25.     git clone "$_gitroot"
  26.   fi
  27.  
  28.   mkdir -p "${srcdir}/${_gitname}-build"
  29.   cd "${srcdir}/${_gitname}-build"
  30.  
  31.   cmake "../${_gitname}" \
  32.     # This disables the static bsdyengine during configuration but it seems
  33.     # to be hard-coded elsewhere.
  34.     #'-DAvogadro_STATIC_PLUGINS:STRING=navigatetool;elementcolor' \
  35.     -DCMAKE_BUILD_TYPE=Release \
  36.     -DCMAKE_INSTALL_PREFIX=/usr
  37.   make
  38. }
  39.  
  40. package() {
  41.   cd "${srcdir}/${_gitname}-build"
  42.   make DESTDIR="${pkgdir}" install
  43. }
clone this paste RAW Paste Data