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