# Maintainer: Dan Maftei pkgname='molden' pkgver=5.7 pkgrel=2 pkgdesc="A program for molecular and electronic structure visualization" arch=('i686' 'x86_64') url="http://www.cmbi.ru.nl/molden/" license=('custom') groups=() depends=('mesa' 'glu') makedepends=( 'vi' 'gcc-fortran' 'xproto' 'libx11' 'mesa' 'glu' ) optdepends=( 'openbabel: to create 2D images of the molecules in a .sdf file' 'wget: to fetch PDB from rcsb.org' ) provides=('molden') conflicts=() replaces=() backup=() options=() install= changelog= source=( "ftp://ftp.cmbi.ru.nl/pub/molgraph/molden/$pkgname$pkgver.tar.gz" "rdchx.patch" ) noextract=() md5sums=('1b33fc2fda6429f1945ffa3c291ccd97' '902d3fc3ebdb928fac38deb2ba7d5f94') build() { cd "$pkgname$pkgver" # Patch Makefile for surf utility to reflect the # replacement of missing makedepend sed -i 's/@.*makedepend.*$/@ \$(CC) \$(INCLUDE) -M \$(SRCS) \> makedep/' surf/Makefile # Patch rdchx.f for iconn dimension, # thanks Panadestein for pointing out and # arjun_karol for the solution patch -p0 -i rdchx.patch make } package() { cd "$pkgname$pkgver" install -t "$pkgdir/usr/bin/" -Dm755 molden gmolden install -t "$pkgdir/usr/lib/$pkgname/" -Dm755 ambfor/ambfor ambfor/ambmd surf/surf install -t "$pkgdir/usr/share/doc/$pkgname" -Dm755 doc/figures.ps.Z doc/manual.ps.Z doc/manual.txt.Z install -t "$pkgdir/usr/share/licenses/$pkgname/" -Dm755 CopyRight COMMERCIAL_LICENSE REGISTER }