# Exit on error:
set -e

# Sample of the fonts:
wget http://mirrors.ctan.org/fonts/arphic/arphic-sampler.pdf

#wget http://mirrors.ctan.org/fonts/arphic-ttf/bkai00mp.ttf
#wget http://mirrors.ctan.org/fonts/arphic-ttf/bsmi00lp.ttf
wget http://mirrors.ctan.org/fonts/arphic-ttf/gbsn00lp.ttf
#wget http://mirrors.ctan.org/fonts/arphic-ttf/gkai00mp.ttf

# All 4 fonts:
#wget https://mirrors.ctan.org/fonts/arphic-ttf.zip
#unzip arphic-ttf.zip
#cd arphic-ttf

#install -m644 bkai00mp.ttf /share/fonts/X11/TTF
#install -m644 bsmi00lp.ttf /share/fonts/X11/TTF
install -m644 gbsn00lp.ttf /share/fonts/X11/TTF
#install -m644 gkai00mp.ttf /share/fonts/X11/TTF

#cd ..
#rm -rf arphic-ttf
#rm arphic-ttf.zip

fc-cache -fv

#rm bkai00mp.ttf
#rm bsmi00lp.ttf
rm gbsn00lp.ttf
#rm gkai00mp.ttf

exit 0
