[ create a new paste ] login | about

Link: http://codepad.org/VLnCPrEJ    [ raw code | fork ]

Plain Text, pasted on May 12:
# $Id: PKGBUILD 57440 2011-10-27 20:16:15Z lcarlier $
# Maintainer: Eduardo Martins Lopes "duca" <edumlopes@gmail.com>
# Maintainer: Abhishek Dasgupta <abhidg@gmail.com>
# Contributor: Ricardo <rikardo.horo@gmail.com>
# Contributor: Hector <hsearaDOTatDOTgmailDOTcom>

pkgname=gromacs
pkgver=4.5.5
pkgrel=9
pkgdesc='GROMACS is a versatile package to perform molecular dynamics, i.e. simulate the Newtonian equations of motion for systems with hundreds to millions of particles.'
url='http://www.gromacs.org/'
license=("GPL")
arch=('i686' 'x86_64')
depends=('fftw' 'lesstif' 'perl' 'libxml2' 'libsm' 'libx11')
makedepends=('cmake')
options=('!libtool')
source=(ftp://ftp.gromacs.org/pub/gromacs/${pkgname}-${pkgver}.tar.gz)
md5sums=('6a87e7cdfb25d81afa9fea073eb28468')
sha1sums=('ce4b4f9a0453dd2ffea72f28ea0bc7bb7a72f479')

build() {
  mkdir -p ${srcdir}/{single,double}
  mkdir -p ${pkgdir}/etc/profile.d/

  msg2 "Building the doulbe precision files"
  cd ${srcdir}/double	
  cmake -DCMAKE_PREFIX=/usr/ -DCMAKE_INSTALL_PREFIX=/usr -DGMX_THREADS=ON -DGMX_SHARED_LIBS=ON -DGMX_DOUBLE=ON -DGMX_X11=ON -DGMX_LIBS_SUFFIX=_d ../${pkgname}-${pkgver}/
  make

  msg2 "Building the single precision files"
  cd ${srcdir}/single
  cmake -DCMAKE_PREFIX=/usr/ -DCMAKE_INSTALL_PREFIX=/usr/ -DGMX_THREADS=ON -DGMX_SHARED_LIBS=ON -DGMX_X11=ON ../${pkgname}-${pkgver}/
  make
}

package() {
  msg2 "Making the single precision executables"
  cd ${srcdir}/single
  make  DESTDIR=${pkgdir} install

  # Cleaning up, kept the csh completion at default location
  msg2 "Making the double precision executables"
  cd ${srcdir}/double
  make DESTDIR=${pkgdir} install

  # installing completions in correct location and environment setup script
  install -D -m755 ${srcdir}/${pkgname}-${pkgver}/scripts/completion.bash "${pkgdir}/etc/bash_completion.d/${pkgname}.sh"
  mv ${pkgdir}/usr/bin/GMXRC ${pkgdir}/etc/profile.d/
}


Create a new paste based on this one


Comments: