File: libslepc3.7.3-dev.prerm

package info (click to toggle)
slepc 3.7.3%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,788 kB
  • ctags: 100,221
  • sloc: ansic: 79,324; makefile: 3,897; python: 2,734; fortran: 1,139; f90: 225; sh: 100
file content (22 lines) | stat: -rw-r--r-- 672 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e

DEB_HOST_MULTIARCH=__DEB_HOST_MULTIARCH__

SONAME=__SLEPC_SONAME_VERSION__

SLEPC_VERSION=__SLEPC_VERSION__
SLEPC_ARCH=${DEB_HOST_MULTIARCH}
SLEPC_REAL_ARCH=${SLEPC_ARCH}-real

SLEPC_DIR_REAL=/usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH}

# Remove alternatives links
if [ "$1" = "remove" ]; then
  update-alternatives --remove slepc /usr/lib/slepcdir/${SLEPC_VERSION}/${SLEPC_REAL_ARCH}
  update-alternatives --remove libslepc_real.so /usr/lib/${DEB_HOST_MULTIARCH}/libslepc_real.so.${SLEPC_VERSION}

  update-alternatives --remove slepc${SONAME} ${SLEPC_DIR_REAL}
  update-alternatives --remove slepc${SONAME}-real ${SLEPC_DIR_REAL}
fi

#DEBHELPER#