name=corefonts version=final fonts=" wd97vwr-efa72d3ed0120a07326ce02f051e9b42 webdin-230a1d13a365b22815f502eb24d9149b verdan-12d2a75f8156e10607be1eaa8e8ef120 trebuc-0d7ea16cac6261f8513a061fbfcdb2b5 times-ed39c8ef91b9fb80f76f702568291bd5 impact-7907c7dd6684e9bade91cff82683d9d7 georgi-4d90016026e2da447593b41a8d8fa8bd courie-4e412c772294403ab62fb2d247d85c60 comic-2b30de40bb5e803a0452c7715fc835d1 arialb-c9089ae0c3b3d0d8c4b0a95979bb9ff0 arial-9637df0e91703179f0723ec095a36cb5 andale-cbdc2fdd7d2ed0832795e86a8b9ee19a " for font in $fonts; do fontname="$(echo "$font" | cut -d- -f1)" checksum="$(echo "$font" | cut -d- -f2)" download "https://sourceforge.net/projects/$name/files/the%20fonts/$version/${fontname}32.exe" \ "$checksum" done header_end mkdir -p "$dir_install/$dir_prefix/$dir_datadir/fonts/TTF" for font in $fonts; do fontname="$(echo "$font" | cut -d- -f1)" extract "${fontname}32.exe" \ "$dir_install/$dir_prefix/$dir_datadir/fonts/TTF" \ 'cabextract -q -F *.ttf -d {dst} {src}' done # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: