wok view wqy-microhei/receipt @ rev 25607

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 19 13:00:59 2023 +0000 (16 months ago)
parents 7cfc423aaa00
children b81ceff0b056
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|.*a href="|"https://sourceforge.net|;s| .*||;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 }