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

Up cookutils (1024), tazpkg (957)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jan 24 12:19:58 2018 +0200 (2018-01-24)
parents d57d8c4514f4
children d43bf7aae921
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="py3k xorg-bdftopcf patch"
15 SPLIT="terminus-font-x11 terminus-font-base terminus-font"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 for i in dv1 gq2 ij1 ll2 br1; do
21 [ -f "patch-$i.done" ] && continue
22 echo "Applying patch alt/$i.diff"
23 patch -Np1 -i alt/$i.diff 2>&1 | sed 's|^| |'
24 touch patch-$i.done
25 echo
26 done
28 ./configure \
29 --prefix=/usr \
30 --psfdir=/usr/share/kbd/consolefonts \
31 --x11dir=/usr/share/fonts/X11 &&
32 make && make DESTDIR=$install install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 case $PACKAGE in
39 terminus-font-x11)
40 copy *.pcf*
41 CAT="x-window|Xorg pcf fonts"
42 DEPENDS=" "
43 ;;
44 terminus-font-base)
45 copy ter-v14n.*
46 CAT="system-tools|8x14 console font"
47 DEPENDS=" "
48 ;;
49 terminus-font)
50 copy @std
51 remove_already_packed
52 CAT="system-tools|console fonts"
53 DEPENDS="terminus-font-base"
54 ;;
55 esac
56 }