# HG changeset patch # User Pascal Bellard # Date 1299247798 -3600 # Node ID 5ae6a120b1794b9ac271e2d710a4cb95d1b95eeb # Parent b936343846dfd54924dc6b549057ad6ad47b643b wqy-microhei, wqy-bitmapfont: fix genpkg_rules diff -r b936343846df -r 5ae6a120b179 wqy-bitmapfont/receipt --- a/wqy-bitmapfont/receipt Fri Mar 04 14:43:55 2011 +0100 +++ b/wqy-bitmapfont/receipt Fri Mar 04 15:09:58 2011 +0100 @@ -10,10 +10,17 @@ WGET_URL="$SF_MIRROR/wqy/$TARBALL" TAGS="fonts" +# Rules to configure and make the package. +compile_rules() +{ + mkdir -p $DESTDIR + cp -a $src/* $DESTDIR +} + genpkg_rules() { mkdir -p $fs/usr/share/fonts/wqy/wqy-bitmapfont/ - cp -a wqy-bitmapfont/*.pcf $fs/usr/share/fonts/wqy/wqy-bitmapfont/ + cp -a $DESTDIR/*.pcf $fs/usr/share/fonts/wqy/wqy-bitmapfont/ } pre_install() diff -r b936343846df -r 5ae6a120b179 wqy-microhei/receipt --- a/wqy-microhei/receipt Fri Mar 04 14:43:55 2011 +0100 +++ b/wqy-microhei/receipt Fri Mar 04 15:09:58 2011 +0100 @@ -10,9 +10,16 @@ WEB_SITE="http://wenq.org/index.cgi?MicroHei" WGET_URL="$SF_MIRROR/wqy/$TARBALL" +# Rules to configure and make the package. +compile_rules() +{ + mkdir -p $DESTDIR + cp -a $src/* $DESTDIR +} + # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/fonts/truetype/WenQuanYi - cp -a $PACKAGE/*.ttc $fs/usr/share/fonts/truetype/WenQuanYi + cp -a $DESTDIR/*.ttc $fs/usr/share/fonts/truetype/WenQuanYi }