wok-current view liberation-fonts-base/receipt @ rev 25177

Update some web_site & wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 02 13:44:10 2022 +0000 (2022-07-02)
parents d1570adae0ba
children
line source
1 # SliTaz package receipt.
3 PACKAGE="liberation-fonts-base"
4 VERSION="2.00.1"
5 CATEGORY="fonts"
6 SHORT_DESC="Liberation fonts (only regular)"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="SIL_OFL"
9 WEB_SITE="https://www.redhat.com/promo/fonts/"
10 SOURCE="liberation-fonts"
11 TARBALL="$SOURCE-ttf-$VERSION.tar.gz"
12 WGET_URL="https://fedorahosted.org/releases/l/i/$SOURCE/$TARBALL"
14 BUILD_DEPENDS="wget"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/liberationfonts/liberation-fonts/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 dir="$fs/usr/share/fonts/truetype/$SOURCE"
27 mkdir -p $dir
28 cp $src/*Regular.ttf $dir
29 }