1 # Build recipe for mkfontdir.
3 # Copyright (C) 2017 Mateus P. Rodrigues <mprodrigues@dragora.org>.
5 # This recipe is free software: you have unlimited permission
6 # to copy, distribute and modify it.
12 tarname=${program}-${version}.tar.bz2
15 fetch=http://www.x.org/releases/individual/app/$tarname
18 mkfontdir creates the fonts.dir files needed by the legacy X server core font
22 homepage=http://www.x.org
23 license="MIT X Consortium"
25 # Source documentation
26 docs="COPYING ChangeLog README"
27 docsdir="${docdir}/${program}-${version}"
33 unpack "${tardir}/$tarname"
37 ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
39 --libdir=/usr/lib${libSuffix} \
46 make -j${jobs} DESTDIR="$destdir" install
48 # Compress info documents deleting index file for the package
49 if test -d "${destdir}/$infodir"
51 rm -f "${destdir}/${infodir}/dir"
52 lzip -9 "${destdir}/${infodir}"/*
55 # Compress and link man pages (if needed)
56 if test -d "${destdir}/$mandir"
59 cd "${destdir}/$mandir"
60 find . -type f -exec lzip -9 '{}' +
61 find . -type l | while read -r file
63 ln -sf "$(readlink -- "$file").lz" "${file}.lz"
70 mkdir -p "${destdir}${docsdir}"
76 cp -p $file "${destdir}${docsdir}"