prerm is in libpetsc-complex-3.7.7-dev 3.7.7+dfsg1-2build5.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #!/bin/sh -e
DEB_HOST_MULTIARCH=x86_64-linux-gnu
SONAME=3.7
PETSC_VERSION=3.7.7
PETSC_ARCH=${DEB_HOST_MULTIARCH}
PETSC_COMPLEX_ARCH=${PETSC_ARCH}-complex
PETSC_DIR_COMPLEX=/usr/lib/petscdir/${PETSC_VERSION}/${PETSC_COMPLEX_ARCH}
# Remove alternatives links
if [ "$1" = "remove" ]; then
update-alternatives --remove petsc /usr/lib/petscdir/${PETSC_VERSION}/${PETSC_COMPLEX_ARCH}
update-alternatives --remove libpetsc_complex.so /usr/lib/${DEB_HOST_MULTIARCH}/libpetsc_complex.so.${PETSC_VERSION}
update-alternatives --remove petsc${SONAME} ${PETSC_DIR_COMPLEX}
update-alternatives --remove petsc${SONAME}-complex ${PETSC_DIR_COMPLEX}
fi
# Automatically added by dh_python2:
if which pyclean >/dev/null 2>&1; then
pyclean -p libpetsc-complex-3.7.7-dev
else
dpkg -L libpetsc-complex-3.7.7-dev | grep '\.py$' | while read file
do
rm -f "${file}"[co] >/dev/null
done
fi
# End automatically added section
|