wok view wqy-microhei/receipt @ rev 24783
Up apache-ant (1.10.12)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 20 12:11:06 2022 +0000 (2022-03-20) |
parents | d1570adae0ba |
children | 29df00e1e19d |
line source
1 # SliTaz package receipt.
3 PACKAGE="wqy-microhei"
4 VERSION="0.2.0-beta"
5 CATEGORY="fonts"
6 SHORT_DESC="文泉驿微米黑,版本v0.2.0-beta (开发代号:远古大爆炸,Codename: BigBang)"
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="Apache GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://wenq.org/index.cgi?MicroHei"
11 WGET_URL="$SF_MIRROR/wqy/$TARBALL"
13 DEPENDS=""
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://sourceforge.net/projects/wqy/files/ 2>/dev/null | \
19 sed '/scope="row/!d;/wqy-microhei\//!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
20 sed 's| |\n|g' | sed '/http/!d;/download/!d;s|^"||;s|/download",|/|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/tar/!d;/wqy-microhei/!d;s|.*wqy-microhei-||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir -p $DESTDIR
28 cp -a $src/* $DESTDIR
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/fonts/truetype/WenQuanYi
35 cp -a $install/*.ttc $fs/usr/share/fonts/truetype/WenQuanYi
36 }