#!/bin/sh # # see: dh_installdeb(1) set -e # font alternatives ALT_GOTHIC_NAME="fonts-japanese-gothic" GOTHIC_FONT_ENTRY="/usr/share/fonts/opentype/ipafont-gothic/ipag.ttf" FONT_PRIORITY=100 add_alternate_gothic_font_entry() { update-alternatives --install \ /usr/share/fonts/truetype/$ALT_GOTHIC_NAME.ttf \ $ALT_GOTHIC_NAME.ttf \ $GOTHIC_FONT_ENTRY \ $FONT_PRIORITY } # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) if [ ! -e /usr/share/fonts/truetype ]; then mkdir /usr/share/fonts/truetype fi # alternatives add_alternate_gothic_font_entry ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. exit 0