wok rev 14745

wqy-bitmapfont: fix download path, add fontconfig rule.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jun 14 13:57:08 2013 +0000 (2013-06-14)
parents 1579e41f30b5
children 87ed2f0de883
files wqy-bitmapfont/receipt
line diff
     1.1 --- a/wqy-bitmapfont/receipt	Fri Jun 14 11:49:11 2013 +0200
     1.2 +++ b/wqy-bitmapfont/receipt	Fri Jun 14 13:57:08 2013 +0000
     1.3 @@ -5,19 +5,26 @@
     1.4  CATEGORY="x-window"
     1.5  SHORT_DESC="A popular Chinese bitmap font."
     1.6  MAINTAINER="tsjz@ymail.com"
     1.7 +LICENSE="GPL2"
     1.8  WEB_SITE="http://www.wqy.org/"
     1.9  TARBALL="$PACKAGE-pcf-0.9.9-0.tar.gz"
    1.10 -WGET_URL="$SF_MIRROR/wqy/$TARBALL"
    1.11 +WGET_URL="$SF_MIRROR/wqy/$PACKAGE/$VERSION/$TARBALL"
    1.12  TAGS="font"
    1.13  
    1.14  genpkg_rules()
    1.15  {
    1.16 -	FONT=$fs/usr/share/fonts/wqy/wqy-bitmapfont
    1.17 -	mkdir -p $FONT
    1.18 -	cp -a $src/*.pcf $FONT
    1.19 +	FONT=/usr/share/fonts/wenquanyi/wqy-bitmapfont
    1.20 +	mkdir -p \
    1.21 +		$fs$FONT \
    1.22 +		$fs/etc/fonts/conf.avail \
    1.23 +		$fs/etc/fonts/conf.d
    1.24 +	cp -a $src/*.pcf $fs$FONT
    1.25 +	cp -a $src/*.conf $fs/etc/fonts/conf.avail
    1.26 +	ln -s ../conf.avail/85-wqy-bitmapsong.conf \
    1.27 +		$fs/etc/fonts/conf.d/85-wqy-bitmapsong.conf
    1.28  }
    1.29  
    1.30 -pre_install()
    1.31 +post_install()
    1.32  {
    1.33 -	fc-cache -v > /dev/null 2>&1
    1.34 +	fc-cache -f > /dev/null 2>&1
    1.35  }