updated on Fri Jan 20 16:18:17 UTC 2012
[aur-mirror.git] / vmd / PKGBUILD
blobe7ffd06f6b593692f738783a8537ce69c5c3ea16
1 #Maintainer: steabert <steabert@member.fsf.org>
2 #Contributor: Ricardo Honorato Z.
3 pkgname=vmd
4 pkgver=1.9
5 pkgrel=2
6 pkgdesc="Visual Molecular Dynamics"
7 url="http://www.ks.uiuc.edu/Research/vmd/"
8 license=('custom')
9 arch=('i686' 'x86_64')
10 depends=('tcsh' 'perl' 'libxi' 'tcl' 'libxinerama' 'mesa')
11 makedepends=('make')
12 optdepends=('netcdf: MMTK and AMBER 9 trajectories support'
13             'openbabel: additional file formats support')
15 # You MUST download the package from the VMD url and put it in the PKGBUILD folder!
16 [ "$CARCH" = "i686" ] && source=(vmd-1.9.bin.LINUX.opengl.tar.gz)
17 [ "$CARCH" = "x86_64" ] && source=(vmd-1.9.bin.LINUXAMD64.opengl.tar.gz)
19 [ "$CARCH" = "i686" ] && md5sums=('6aa26d85b5a44a1ba9cf5bc969dd6a2a')
20 [ "$CARCH" = "x86_64" ] && md5sums=('de8ccc48071b014a3e3ce334a0c06eae')
22 build() {
23   cd $srcdir/$pkgname-$pkgver
24   install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
25   export VMDINSTALLBINDIR="$pkgdir/usr/bin"
26   export VMDINSTALLLIBRARYDIR="$pkgdir/usr/lib/vmd"
27   ./configure
28   cd src; make install
29   sed -i 's|set defaultvmddir=.*|set defaultvmddir=/usr/lib/vmd|' "$pkgdir/usr/bin/vmd"