summaryrefslogtreecommitdiff
path: root/community/gromacs/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/gromacs/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/gromacs/PKGBUILD')
-rw-r--r--community/gromacs/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/gromacs/PKGBUILD b/community/gromacs/PKGBUILD
new file mode 100644
index 000000000..afc51016d
--- /dev/null
+++ b/community/gromacs/PKGBUILD
@@ -0,0 +1,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}
+}