ttf.inc : Unbreak ttf fonts
authorKalev Lember <kalev@smartlink.ee>
Fri, 26 Sep 2008 11:29:12 +0000 (11:29 +0000)
committerPhilip Balister <philip@balister.org>
Fri, 26 Sep 2008 11:29:12 +0000 (11:29 +0000)
          * Patch from bug #4584.

packages/ttf-fonts/ttf.inc

index 98bd5b8..e2be378 100644 (file)
@@ -4,12 +4,10 @@ RRECOMMENDS += "font-update-common"
 
 do_install() {
     install -d ${D}${datadir}/fonts/truetype/
-       if [ -e *.ttf ]; then
-               install -m 0644 *.ttf ${D}${datadir}/fonts/truetype/
-       fi
-    if [ -e *.ttc ]; then
-        install -m 0644 *.ttc ${D}${datadir}/fonts/truetype/
-    fi
+    for f in *.ttf *.ttc
+       do
+          [ -f $f ] && install -m 0644 $f ${D}${datadir}/fonts/truetype/
+       done
 }
 
 pkg_postinst_append() {