wok view terminus-font-base/receipt @ rev 25465

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 01 08:33:11 2022 +0000 (19 months ago)
parents cec9f8f5726d
children 362a5a98467f
line source
1 # SliTaz package receipt.
3 PACKAGE="terminus-font-base"
4 VERSION="4.40"
5 CATEGORY="system-tools"
6 SHORT_DESC="8x14 Unicode console font"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="OFL"
9 WEB_SITE="https://sourceforge.net/projects/terminus-font"
10 SOURCE="terminus-font"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS="perl"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/terminus-font/files/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|;q"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 patch -i alt/dv1.diff || return 1
29 patch -i alt/gq2.diff || return 1
30 patch -i alt/ij1.diff || return 1
31 patch -i alt/ll2.diff || return 1
32 patch -i $stuff/ter-u14n.diff || return 1
33 chmod +x ./configure
34 ./configure \
35 --prefix=/usr \
36 --psfdir=/usr/share/kbd/consolefonts \
37 --x11dir=/usr/share/fonts/X11 &&
38 make psf
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 fontdir=$fs/usr/share/kbd/consolefonts
45 mkdir -p $fontdir
46 cp -a $src/ter-v14n.psf $fontdir
47 gzip -9 $fontdir/*
48 }