postinst is in libslepc3.6.1-dbg 3.6.1.dfsg1-2build2.
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 | #!/bin/sh -e
DEB_HOST_MULTIARCH=x86_64-linux-gnu
SLEPC_VERSION=3.6.1
SLEPC_ARCH=${DEB_HOST_MULTIARCH}
SLEPC_DEBUG_ARCH=${SLEPC_ARCH}-real-debug
SLEPC_VERSION_NUMBER=$( echo ${SLEPC_VERSION} | sed "s/\.//g" )
# Make alternatives links
if [ "$1" = "configure" ]; then
update-alternatives --install /usr/lib/slepc slepc /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_DEBUG_ARCH} ${SLEPC_VERSION_NUMBER}37 \
--slave /usr/lib/libslepc.so libslepc.so /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_DEBUG_ARCH}/lib/libslepc_real.so.${SLEPC_VERSION} \
--slave /usr/lib/${DEB_HOST_MULTIARCH}/libslepc.so libslepc.so.multiarch /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_DEBUG_ARCH}/lib/libslepc_real.so.${SLEPC_VERSION} \
--slave /usr/include/slepc slepcinclude /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_DEBUG_ARCH}/include \
--slave /usr/lib/pkgconfig/SLEPc.pc SLEPc.pc /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_DEBUG_ARCH}/lib/pkgconfig/SLEPc.pc
fi
|