wok-6.x annotate wqy-microhei/receipt @ rev 25142

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