wok-6.x view ttf-dejavu/receipt @ rev 24071
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 07 10:35:01 2021 +0000 (2021-07-07) |
parents | 3c832ef040e6 |
children | bf28cc07ebf1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ttf-dejavu"
4 VERSION="2.37"
5 CATEGORY="fonts"
6 TAGS="font"
7 SHORT_DESC="DejaVu TrueType fonts (minimum)."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="other"
10 WEB_SITE="https://dejavu-fonts.github.io/"
12 TARBALL="dejavu-fonts-ttf-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/dejavu/$TARBALL"
15 BUILD_DEPENDS="fontforge"
16 SPLIT="ttf-dejavu-extra"
18 HOST_ARCH="i486 arm"
20 current_version()
21 {
22 wget -O - https://github.com/dejavu-fonts/dejavu-fonts/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 . $stuff/compile.rules
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cook_copy_files \
36 DejaVuSans.ttf \
37 DejaVuSans-Bold.ttf \
38 DejaVuSansMono.ttf \
39 *sans.conf \
40 *mono.conf
41 }