post_install() {
  if [ -f /usr/bin/mktexlsr ]; then
    echo "Updating TeX tree..."
    mktexlsr
  fi
}

post_upgrade() {
  post_install $1
}

post_remove() {
  if [ -f /usr/bin/mktexlsr ]; then
    echo "Updating TeX tree..."
    mktexlsr
  fi
}

