1 # Contributor: Enrico Morelli <morelli@cerm.unifi.it>
5 pkgdesc="Publication-quality molecular visualization package"
7 url="http://hugin.ethz.ch/wuthrich/software/molmol/index.html"
9 makedepends=('openmotif' 'libjpeg' 'libtiff' 'libpng' 'zlib')
10 source=(ftp://ftp.mol.biol.ethz.ch/software/MOLMOL/unix-gzip/$pkgname-$pkgver-src.tar.gz ftp://ftp.mol.biol.ethz.ch/software/MOLMOL/unix-gzip/$pkgname-$pkgver-doc.tar.gz pjf_RH9_molmol2k2.diff)
11 md5sums=('e1f4416d8041a67fa08cadb03ed91c7c' '517545b60b0179ab691a679ed29903a7' '52b16a9f8b5a23f8012e63250234a5f3')
15 patch -p1 < ../pjf_RH9_molmol2k2.diff
16 ln -s makedef.lnx makedef
19 -e "s:/bin/ksh:/bin/sh:" \
20 -e "s:^MOLMOLHOME.*:MOLMOLHOME=/usr/share/$pkgname:" molmol
22 -e "s:^MCFLAGS.*:MCFLAGS = -march=i686 -O2 -pipe -fomit-frame-pointer:" \
23 -e "s:^CC.*:CC = gcc:" makedef
26 mkdir -p $startdir/pkg/usr/bin
27 cp molmol $startdir/pkg/usr/bin
28 mkdir -p $startdir/pkg/usr/share/$pkgname
29 cp src/main/molmol $startdir/pkg/usr/share/$pkgname/molmol.lnx
30 cp -r auxil help macros man setup tips $startdir/pkg/usr/share/$pkgname