#!/bin/sh -e DEB_HOST_MULTIARCH=x86_64-linux-gnu SLEPC_VERSION=3.16.2 SLEPC_VERSION_NUMBER=$( echo ${SLEPC_VERSION} | sed "s/\.//g" ) SONAME=3.16 # Make alternatives links if [ "$1" = "configure" ]; then # alternative slepc64 version (for given soname), real or complex update-alternatives --install /usr/lib/${DEB_HOST_MULTIARCH}/libslepc64.so.${SONAME} libslepc64.so.${SONAME} /usr/lib/${DEB_HOST_MULTIARCH}/libslepc64_real.so.${SLEPC_VERSION} ${SLEPC_VERSION_NUMBER}77 fi