1 #Maintainer: steabert <steabert@member.fsf.org>
2 #Contributor: Ricardo Honorato Z.
6 pkgdesc="Visual Molecular Dynamics"
7 url="http://www.ks.uiuc.edu/Research/vmd/"
10 depends=('tcsh' 'perl' 'libxi' 'tcl' 'libxinerama' 'mesa')
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')
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"
29 sed -i 's|set defaultvmddir=.*|set defaultvmddir=/usr/lib/vmd|' "$pkgdir/usr/bin/vmd"