wok-next view terminus-font/receipt @ rev 21010

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 12 16:40:30 2018 +0300 (2018-10-12)
parents 1eb4aacb48ed
children 49205cea4356
line source
1 # SliTaz package receipt v2.
3 PACKAGE="terminus-font"
4 VERSION="4.46"
5 CATEGORY="system-tools"
6 SHORT_DESC="Monospaced font designed for long work with computers"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="OFL"
9 WEB_SITE="http://terminus-font.sourceforge.net/"
10 HOST_ARCH="any"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="python3 xorg-bdftopcf patch"
16 SPLIT="$PACKAGE-x11 $PACKAGE-base $PACKAGE"
18 compile_rules() {
19 for i in dv1 gq2 ij1 ll2 br1; do
20 [ -f "patch-$i.done" ] && continue
21 echo "Applying patch alt/$i.diff"
22 patch -Np1 -i alt/$i.diff 2>&1 | sed 's|^| |'
23 touch patch-$i.done
24 echo
25 done
27 ./configure \
28 --prefix=/usr \
29 --psfdir=/usr/share/kbd/consolefonts \
30 --x11dir=/usr/share/fonts/X11 &&
31 make &&
32 make DESTDIR=$install install || return 1
34 mv OFL.TXT OFL.txt
35 cook_pick_docs OFL.txt README README-BG CHANGES
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 terminus-font-x11)
41 copy *.pcf*
42 CAT="x-window|Xorg pcf fonts"
43 DEPENDS=" "
44 ;;
45 terminus-font-base)
46 copy ter-v14n.*
47 CAT="system-tools|8x14 console font"
48 DEPENDS=" "
49 ;;
50 terminus-font)
51 copy @std @rm
52 CAT="system-tools|console fonts"
53 DEPENDS="terminus-font-base"
54 ;;
55 esac
56 }