post_install() {# set the PETSC_DIRsource/etc/profile.d/petsc.sh
export PETSC_DIR=${PETSC_DIR}
noVersion=${1%%-[1-9]}
rootDir=${noVersion/_/-}cat<< EOFIf you just ran makepkg in this directory thento test the PETSc installation you can run:$ cd src/petsc-${rootDir}/; make PETSC_DIR=$PETSC_DIRtestEOF}# vim:set ts=2 sw=2 et: