1 # Contributor: Thomas Zervogiannis <tzervo@gmail.com>
2 # Contributor: Philipp Robbel <robbel@gmail.com>
7 pkgdesc="Parallel Virtual Machine"
8 url="http://www.csm.ornl.gov/pvm/"
12 install=('pvm.install')
13 source=(http://www.netlib.org/pvm3/$pkgname$pkgver.tgz pvm.profile)
14 md5sums=('7b5f0c80ea50b6b4b10b6128e197747b' '299b46254240da82e8f13064eb42436f')
17 cd $srcdir/${pkgname}3
19 # Make pvm FORTRAN90-friendly
20 sed -i 's/^c/!/' include/fpvm3.h include/fpvm3_watcom.h
22 for i in conf/LINUX*def; do
23 sed -i.orig -e '/^ARCHCFLAGS/s~/usr/bin/rsh\\"~/usr/bin/ssh\\" ${CXXFLAGS}~' "${i}"
27 export PVM_ROOT=$srcdir/${pkgname}3
30 mkdir -p $pkgdir/usr/man
31 mv $srcdir/${pkgname}3/man/man1 $pkgdir/usr/man
32 mkdir -p $pkgdir/usr/man/man3
33 mv $srcdir/${pkgname}3/man/man3 $pkgdir/usr/man
35 # remove some unnecessary files
36 # rm -rf Readme.* Makefile* WIN32 examples gexamples conf console make* cygwin.mak doc hoster libfpvm man misc pvmgs rm shmd src tasker tracer xdr xep
37 # find . -name '*.cmd' -o -name '*.bat' -o -name '*.stub' | xargs rm -f
39 # install the rest of pvm
40 mkdir -p $pkgdir/usr/share/${pkgname}3
41 cp -r * $pkgdir/usr/share/${pkgname}3
42 mkdir -p $pkgdir/usr/bin
43 ln -s /usr/share/pvm3/lib/LINUX/pvm $pkgdir/usr/bin/pvm
44 ln -s /usr/share/pvm3/lib/LINUX/pvmd3 $pkgdir/usr/bin/pvmd3
45 ln -s /usr/share/pvm3/lib/LINUX/pvmgs $pkgdir/usr/bin/pvmgs
47 # environment variables
48 mkdir -p $pkgdir/etc/profile.d
49 install -m755 $startdir/${pkgname}.profile $pkgdir/etc/profile.d/${pkgname}3.sh