blob: afc51016dda4ce77c062077404bdd86b86039c0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $Id: PKGBUILD 43416 2011-03-25 21:35:12Z ebelanger $
# Maintainer: Abhishek Dasgupta <abhidg@gmail.com>
# Contributor: Ricardo <rikardo.horo@gmail.com>
pkgname=gromacs
pkgver=4.5.4
pkgrel=1
pkgdesc='A fast Molecular Dynamics program based on the GROMOS force field'
url='http://www.gromacs.org/'
license=("GPL")
arch=('i686' 'x86_64')
depends=('fftw' 'lesstif' 'perl' 'libxml2' 'libsm' 'libx11')
options=('!libtool')
source=(ftp://ftp.gromacs.org/pub/gromacs/${pkgname}-${pkgver}.tar.gz)
md5sums=('5013de941017e014b92d41f82c7e86d6')
sha1sums=('c7b3fbd2f3ddf915bc082e7effe76a8276563726')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
[ "$CARCH" == "i686" ] && SSE="--disable-ia32-sse"
./configure --prefix=/usr --enable-shared $SSE
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# installing completions in correct location
install -D -m644 scripts/completion.bash "${pkgdir}/etc/bash_completion.d/gromacs"
install -D -m644 scripts/completion.zsh "${pkgdir}/usr/share/zsh/site-functions/gromacs"
# Cleaning up, kept the csh completion at default location
rm "${pkgdir}"/usr/bin/{completion.bash,completion.zsh,GMXRC,GMXRC.bash,GMXRC.zsh}
}
|