Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 26th, 2012  |  syntax: None  |  size: 1.06 KB  |  views: 36  |  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:
  2. pkgname=ball-git
  3. pkgver=20121226
  4. pkgrel=1
  5. pkgdesc="Application framework in C++ for Computational Molecular Biology and Molecular Modeling."
  6. arch=("i686" "x86_64")
  7. url="http://www.ball-project.org/"
  8. license=('LGPL')
  9. groups=()
  10. depends=('bison' 'fftw' 'flex' 'gsl' 'glew' 'lpsolve' 'python2' 'qt' 'sip')
  11. makedepends=('boost' 'git')
  12. provides=('ball')
  13. conflicts=('ball')
  14.  
  15. _gitroot="https://bitbucket.org/ball/ball.git"
  16. _gitname="ball"
  17.  
  18. build() {
  19.   cd ${srcdir}
  20.   msg "Connecting to GIT server..."
  21.  
  22.   if [ -d "$_gitname" ]; then
  23.     cd "$_gitname" && \
  24.       git pull origin && \
  25.       msg "The local files have been updated."
  26.   else
  27.     git clone "$_gitroot" "$_gitname"
  28.   fi
  29.  
  30.   msg "GIT checkout done or server timeout"
  31.   msg "Starting make..."
  32.  
  33.   rm -rf "$srcdir/$_gitname-build"
  34.   mkdir "$srcdir/$_gitname-build"
  35.   cd "$srcdir/$_gitname-build"
  36.  
  37.   cmake "../${_gitname}" \
  38.     -DCMAKE_BUILD_TYPE=Release \
  39.     -DCMAKE_INSTALL_PREFIX=/usr
  40.   make
  41. }
  42.  
  43. package() {
  44.   cd "${srcdir}/$_gitname-build"
  45.   make DESTDIR="${pkgdir}" install
  46. }