# $Id: PKGBUILD 57440 2011-10-27 20:16:15Z lcarlier $ # Maintainer: Hector pkgname=gromacs-2020-complete pkgver=2020.6 pkgrel=1 pkgdesc='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=("LGPL") arch=('x86_64') depends=('lapack' 'zlib' 'hwloc') optdepends=('cuda: Nvidia GPU support' 'vmd: Accesibility to other trajectory formats (ONLY WHEN COMPILING)' 'perl: needed for demux.pl and xplor2gmx.pl' 'opencl-mesa: OpenCL support for AMD GPU' 'opencl-nvidia: OpenCL support for Nvidia GPU') makedepends=('cmake' 'libxml2' 'hwloc') options=('!libtool') source=(http://ftp.gromacs.org/pub/gromacs/gromacs-${pkgver}.tar.gz) sha256sums=('d8bbe57ed3c9925a8cb99ecfe39e217f930bed47d5268a9e42b33da544bdb2ee') export VMDDIR=/usr/lib/vmd/ #If vmd is available at compilation time #Gromacs will have the ability to read any #trajectory file format that can be read by #VMD installation (e.g. AMBER's DCD format). #For cuda support gcc10 is required, if you do not need cuda support comment the next two lines and install cuda export CC=gcc-10 export CXX=g++-10 build() { mkdir -p ${srcdir}/{single,double} msg2 "Building the double precision files" cd ${srcdir}/double cmake ../gromacs-${pkgver}/ \ -DCMAKE_INSTALL_PREFIX=/usr/local/gromacs/gromacs-${pkgver}/ \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=ON \ -DGMX_DOUBLE=ON \ -DGMX_BUILD_OWN_FFTW=ON \ -DREGRESSIONTEST_DOWNLOAD=ON make msg2 "Building the single precision files" cd ${srcdir}/single cmake ../gromacs-${pkgver}/ \ -DCMAKE_INSTALL_PREFIX=/usr/local/gromacs/gromacs-${pkgver}/ \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=ON \ -DGMX_BUILD_OWN_FFTW=ON \ -DREGRESSIONTEST_DOWNLOAD=ON make } check () { msg2 "Testing double precision compilation" cd ${srcdir}/double make check msg2 "Testing single precision compilation" cd ${srcdir}/single make check } package() { msg2 "Making the single precision executables" cd ${srcdir}/single make DESTDIR=${pkgdir} install msg2 "Making the double precision executables" cd ${srcdir}/double make DESTDIR=${pkgdir} install }