diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 54 |
1 files changed, 31 insertions, 23 deletions
@@ -1,66 +1,73 @@ # $Id: PKGBUILD 57440 2011-10-27 20:16:15Z lcarlier $ # Maintainer: Hector <hsearaDOTatDOTgmailDOTcom> +# Maintainer: Vedran Miletic <vedran AT miletic DOT net> pkgname=gromacs -pkgver=2019.3 +pkgver=2024.2 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=('i686' 'x86_64') -depends=('lapack' 'zlib' 'hwloc') +arch=('x86_64') +depends=('lapack' 'zlib' 'hwloc' 'gcc13-libs' 'libxml2') 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') + 'opencl-clover-mesa: OpenCL support for AMD/Intel GPU' + 'opencl-rusticl-mesa: OpenCL support for AMD/Intel GPU' + 'opencl-nvidia: OpenCL support for Nvidia GPU') +makedepends=('cmake' 'gcc13') options=('!libtool') -source=(http://ftp.gromacs.org/pub/gromacs/gromacs-${pkgver}.tar.gz) -sha1sums=('c4a639024d1a1e2b9cdaea180610a56c1596dcaa') +source=(https://gitlab.com/gromacs/gromacs/-/archive/v${pkgver}/gromacs-v${pkgver}.tar.gz) + +sha256sums=('46335abe0683448f51e7f1aa7c79ea383fd6ca0f842e30d77d7a5e6acb7d569e') 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 (12+) support, compiling with GCC 13 is required. +# If you not need CUDA support, uncomment the next two lines +# and install cuda and gcc12 packages. +export CC=gcc-13 +export CXX=g++-13 + build() { mkdir -p ${srcdir}/{single,double} - msg2 "Building the double precision files" - cd ${srcdir}/double - cmake ../gromacs-${pkgver}/ \ + cd ${srcdir}/double + cmake ../gromacs-v${pkgver}/ \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DGMX_DOUBLE=ON \ -DGMX_BUILD_OWN_FFTW=ON \ -DREGRESSIONTEST_DOWNLOAD=ON - #-DGMX_SIMD=AVX2_256 \ make msg2 "Building the single precision files" cd ${srcdir}/single - cmake ../gromacs-${pkgver}/ \ + cmake ../gromacs-v${pkgver}/ \ -DCMAKE_INSTALL_PREFIX=/usr/ \ - -DCMAKE_INSTALL_LIBDIR=lib\ + -DCMAKE_INSTALL_LIBDIR=lib \ -DGMX_BUILD_OWN_FFTW=ON \ - -DREGRESSIONTEST_DOWNLOAD=ON - #-DGMX_SIMD=AVX2_256 \ + -DREGRESSIONTEST_DOWNLOAD=ON \ + #-DGMX_GPU=CUDA + # For GPU acceleration support, uncomment the previous line and pick one: OFF, CUDA, OpenCL, SYCL make } check () { msg2 "Testing double precision compilation" cd ${srcdir}/double - make check + #make check msg2 "Testing single precision compilation" cd ${srcdir}/single - make check + #make check } package() { - msg2 "Making the single precision executables" cd ${srcdir}/single make DESTDIR=${pkgdir} install @@ -71,13 +78,14 @@ package() { make DESTDIR=${pkgdir} install # installing completions in correct location and environment setup script - msg2 "Installing completion and environment setup script" +# msg2 "Installing completion and environment setup script" + msg2 "Installing environment setup script" mkdir -p ${pkgdir}/etc/profile.d/ - mkdir -p ${pkgdir}/usr/share/bash-completion/completions - install -D -m755 ${srcdir}/gromacs-${pkgver}/src/programs/completion/gmx-completion.bash "${pkgdir}/usr/share/bash-completion/completions/gromacs" +# mkdir -p ${pkgdir}/usr/share/bash-completion/completions +# install -D -m755 ${srcdir}/gromacs-v${pkgver}/src/programs/completion/gmx-completion.bash "${pkgdir}/usr/share/bash-completion/completions/gromacs" mv ${pkgdir}/usr/bin/GMXRC.* ${pkgdir}/etc/profile.d/ sed "s:/usr/bin:/etc/profile.d:" ${pkgdir}/usr/bin/GMXRC > ${pkgdir}/etc/profile.d/GMXRC chmod 755 ${pkgdir}/etc/profile.d/GMXRC - rm -f ${pkgdir}/usr/bin/completion.* +# rm -f ${pkgdir}/usr/bin/completion.* rm -f ${pkgdir}/usr/bin/GMXRC } |