wok view wqy-bitmapfont/receipt @ rev 25376

updated tzdata (2019c -> 2022a)
author Hans-G?nter Theisgen
date Sat Jul 30 10:43:02 2022 +0100 (2022-07-30)
parents dfef8de3d270
children 29df00e1e19d
line source
1 # SliTaz package receipt.
3 PACKAGE="wqy-bitmapfont"
4 VERSION="0.9.9"
5 CATEGORY="x-window"
6 SHORT_DESC="A popular Chinese bitmap font."
7 MAINTAINER="tsjz@ymail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.wqy.org/"
10 TARBALL="$PACKAGE-pcf-0.9.9-0.tar.gz"
11 WGET_URL="$SF_MIRROR/wqy/$PACKAGE/$VERSION/$TARBALL"
12 TAGS="font"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://sourceforge.net/projects/wqy/files/ 2>/dev/null | \
18 sed '/scope="row/!d;/wqy-bitmapfont\//!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
19 sed 's| |\n|g' | sed '/http/!d;/download/!d;s|^"||;s|/download",|/|;q' | xargs wget -O - 2>/dev/null | \
20 sed '/tar/!d;/-pcf-/!d;s|.*pcf-||;s|.tar.*||;q'
21 }
23 genpkg_rules()
24 {
25 FONT=/usr/share/fonts/wenquanyi/wqy-bitmapfont
26 mkdir -p \
27 $fs$FONT \
28 $fs/etc/fonts/conf.avail \
29 $fs/etc/fonts/conf.d
30 cp -a $src/*.pcf $fs$FONT
31 cp -a $src/*.conf $fs/etc/fonts/conf.avail
32 ln -s ../conf.avail/85-wqy-bitmapsong.conf \
33 $fs/etc/fonts/conf.d/85-wqy-bitmapsong.conf
34 }
36 post_install()
37 {
38 chroot "$1/" fc-cache -f > /dev/null 2>&1
39 }