# Extract the fonts with cabextract: if [ -e /usr/bin/cabextract ] ; then for i in tmp/ms-fonts-ttf/*.exe ; do cabextract -L -d 'usr/share/fonts/TTF' -F '*.ttf' $i done else echo echo -e "\e[0;31mError: cabextract not found\e[m" echo -e "\e[0;31mInstall cabextract and reinstall this package\e[m" echo exit 1 fi # Hence original *.exe files are no longer useful, remove them: rm -rf tmp/ms-fonts-ttf # Update font cache: fc-cache -f > dev/null mkfontscale usr/share/fonts/TTF mkfontdir usr/share/fonts/TTF # Show license: echo echo 'By using this package you must accept the End User License Agreement' echo 'for Microsoft Software (EULA), which has been installed in' echo '/usr/doc/ms-fonts-ttf-@VERSION@/LICENSE' echo echo '----------------------------------------------------------------------' cat usr/doc/ms-fonts-ttf-@VERSION@/LICENSE echo '----------------------------------------------------------------------' echo