diff options
Diffstat (limited to 'system/gnu-unifont/gnu-unifont.SlackBuild')
-rw-r--r-- | system/gnu-unifont/gnu-unifont.SlackBuild | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/system/gnu-unifont/gnu-unifont.SlackBuild b/system/gnu-unifont/gnu-unifont.SlackBuild index 8fb1ec918f464..ad05b4f6d3ba9 100644 --- a/system/gnu-unifont/gnu-unifont.SlackBuild +++ b/system/gnu-unifont/gnu-unifont.SlackBuild @@ -25,7 +25,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=gnu-unifont -VERSION=${VERSION:-13.0.03} +VERSION=${VERSION:-13.0.04} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -85,6 +85,17 @@ if contains "$FONTFORMATS" "psf"; then FONTSCOPIED=1 fi +if contains "$FONTFORMATS" "otb"; then + mkdir -p $PKG/usr/share/fonts/misc + for pcf_file in *.pcf.gz; do + echo "Converting '$pcf_file' to OTB format." + otb_file=$(echo "$pcf_file" | sed 's/\.pcf\.gz$/.otb/g') + fonttosfnt -o "$PKG/usr/share/fonts/misc/$otb_file" "$pcf_file" + done + + FONTSCOPIED=1 +fi + cd - if [ "$FONTSCOPIED" -eq 0 ]; then |