wok annotate wqy-bitmapfont/receipt @ rev 25056

linux-wireless: add r8192ee.ko & rtl8821ae.ko
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 06 10:49:51 2022 +0000 (2022-06-06)
parents dfef8de3d270
children 29df00e1e19d
rev   line source
pankso@3609 1 # SliTaz package receipt.
pankso@3609 2
tsjz@3221 3 PACKAGE="wqy-bitmapfont"
tsjz@3221 4 VERSION="0.9.9"
mallory@3288 5 CATEGORY="x-window"
tsjz@3221 6 SHORT_DESC="A popular Chinese bitmap font."
tsjz@3221 7 MAINTAINER="tsjz@ymail.com"
al@14745 8 LICENSE="GPL2"
pankso@3609 9 WEB_SITE="http://www.wqy.org/"
al@14742 10 TARBALL="$PACKAGE-pcf-0.9.9-0.tar.gz"
al@14745 11 WGET_URL="$SF_MIRROR/wqy/$PACKAGE/$VERSION/$TARBALL"
al@14742 12 TAGS="font"
pascal@9070 13
pascal@24319 14 # What is the latest version available today?
pascal@24319 15 current_version()
pascal@24319 16 {
pascal@24319 17 wget -O - https://sourceforge.net/projects/wqy/files/ 2>/dev/null | \
pascal@24319 18 sed '/scope="row/!d;/wqy-bitmapfont\//!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24319 19 sed 's| |\n|g' | sed '/http/!d;/download/!d;s|^"||;s|/download",|/|;q' | xargs wget -O - 2>/dev/null | \
pascal@24319 20 sed '/tar/!d;/-pcf-/!d;s|.*pcf-||;s|.tar.*||;q'
pascal@24319 21 }
pascal@24319 22
tsjz@3221 23 genpkg_rules()
tsjz@3221 24 {
al@14745 25 FONT=/usr/share/fonts/wenquanyi/wqy-bitmapfont
al@14745 26 mkdir -p \
al@14745 27 $fs$FONT \
al@14745 28 $fs/etc/fonts/conf.avail \
al@14745 29 $fs/etc/fonts/conf.d
al@14745 30 cp -a $src/*.pcf $fs$FONT
al@14745 31 cp -a $src/*.conf $fs/etc/fonts/conf.avail
al@14745 32 ln -s ../conf.avail/85-wqy-bitmapsong.conf \
al@14745 33 $fs/etc/fonts/conf.d/85-wqy-bitmapsong.conf
tsjz@3221 34 }
tsjz@3221 35
al@14745 36 post_install()
tsjz@3221 37 {
pascal@17552 38 chroot "$1/" fc-cache -f > /dev/null 2>&1
tsjz@3221 39 }