#!/bin/sh

name="ttmkfdir"
title="ttmkfdir"
package="ttmkfdir"
version="1"
build="1"
noarch="n"
build_info="Standard build."

info="Creates fonts.dir for TrueType fonts."
info_pl="Tworzy fonts.dir dla czcionek TrueType."
desc="ttmkfdir is a tool to create valid and complete fonts.dir files from
TrueType fonts. It is very useful when you plan to use a TrueType
enabled font server that is based on the X11R6 sample implementation
(xfsft for instance). Great care has been taken to correctly identify
the encodings that a given TrueType font supports."
desc_pl="ttmkfdir jest narzędziem do tworzenia poprawnych i
kompletnych plików fonts.dir na podstawie czcionek TrueType.
Jest bardzo użyteczny, gdy planujesz używać serwera czcionek z
obsług± TTF (np. xfsft). Duży nacisk został położony na poprane
rozpoznawanie kodowań przetwarzanych czcionek."
category="config/x11/fonts"
environment="console/text"
contact="$name@packages.packware.gnu.pl"
vendor="Packware Project"
vendor_id="pw"

requires=""
obsoletes=""
conflicts=""

docs_source="README"
docs_cwd=""

strip_bin="y"
reset_own="y"
reset_dir="y"
reset_fil="y"
delete_cat="y"

. /usr/src/tgz/lib/builder.defs

add_source http://www.darmstadt.gmd.de/~pommnitz/TrueType/$name.tar.gz .

apply_patch ttmkfdir-makefile.pw.patch
cp $src_pkg/ttmkfdir.1 $src1

install_option DESTDIR=$pkg_main

parent_package="$package"
write_info main

cd $src1

do_make
do_install

make_docs

make_package main

clean_up
