# ttf/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The "ttf" package requires changes to "/etc/X11/xorg.conf". One FontPath line should be added to the "Files" section for each subdir- ectory of the package installation directory that contains ".ttf" or ".otf" files. For example: If the installation directory is "/usr/share/fonts/ttf", the definitions in question might be similar to this: Section "Files" ... FontPath "/usr/share/fonts/ttf/bakoma/" FontPath "/usr/share/fonts/ttf/bitvera/" FontPath "/usr/share/fonts/ttf/dejavu/" FontPath "/usr/share/fonts/ttf/freefont/" FontPath "/usr/share/fonts/ttf/gentium/" FontPath "/usr/share/fonts/ttf/googlefonts/" FontPath "/usr/share/fonts/ttf/liberation/" FontPath "/usr/share/fonts/ttf/misc/" FontPath "/usr/share/fonts/ttf/replacems/" FontPath "/usr/share/fonts/ttf/texgyre/" #--------------------------------------------------------------------- 2. If XOrg is running, the "xset" commands used in the "build" block below update the active fonts. If XOrg isn't running, the "xset" com- mands will fail, but this distro's "xinitrc" script will execute simi- lar commands when XOrg is started. Note: The "|| true" code used in the "build" block prevents "XOrg not running" errors from being treated as fatal. #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.27 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.00 hours (or 000.28 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM 00.00 hours (or 000.28 minutes) - ThinkPad E540 i7 4x2 16GB RAM #--------------------------------------------------------------------- [settings] altpkg = yes configure = none license = Multi-license (see individual source archives) makejail = yes proddir = none revision = special unpack = none setpaths = xorg tmpsize = 1M #--------------------------------------------------------------------- [depends] bzip2 coreutils findutils fontconfig grep gzip sed xorg #--------------------------------------------------------------------- [build] PRODDIR=/usr/share/fonts/ttf mkdir -p $PRODDIR cd $PRODDIR TOP=`pwd` rm -fr $HOME/.cache/fontconfig rm -fr /var/cache/fontconfig/cache for xdir in \ bakoma bitvera dejavu freefont gentium \ googlefonts liberation replacems texgyre do cd $TOP rm -fr $xdir mkdir $xdir || (echo Error 1 && exit 1) cd $xdir archdir=$PKGDIR_SPECIAL/stdarch/$xdir archfile=$archdir/*.tar.gz if test -f $archfile; then tar zxf $archfile || (echo Error 2 && exit 1) else archfile=$archdir/*.tar.bz2 if test -f $archfile; then tar jxf $archfile || (echo Error 3 && exit 1) else archfile=$archdir/*.zip if test -f $archfile; then unzip -q $archfile || (echo Error 4 && exit 1) else echo Error 5: $xdir master bz2/gz/zip file not found echo It should be located in $archdir echo Note: Only ONE version should be present exit 1 fi fi fi echo 0126 `pwd` mv */* . || (echo Error 6 && exit 1) # Note: The following "rmdir" command removes empty directories, and # only empty directories. It doesn't affect files or non-empty direc- # tories. rmdir * >& /dev/null || true cp -p $archdir/*.txt . \ || (echo Error 7 && exit 1) done echo Debug 0123 cd $TOP mkdir -p bin misc cp -p $PKGDIR_SPECIAL/topdir/bin/xwinfonts bin/ cp -p $PKGDIR_SPECIAL/misc/* misc/ cp -p $PKGDIR_SPECIAL/topdir/readme.txt . chmod 755 bin/xwinfonts fc-cache -fv echo Debug 0132 cd $PRODDIR SUBDIRS=`find . -type d | sort | grep -v "^\."\$ | sed "s|^\./||"` for xdir in $SUBDIRS do DIR=$PRODDIR/$xdir cd $DIR echo Creating config files inside $DIR ln -nsf $PRODTREE/xorg/share/fonts/X11/encodings . mkfontscale mkfontdir echo Done with config files inside $DIR done for xdir in $SUBDIRS do DIR=$PRODDIR/$xdir echo xset fp- $DIR/ ((xset fp- $DIR/ 2> /dev/null) || true) echo xset fp+ $DIR/ ((xset fp+ $DIR/ 2> /dev/null) || true) done chown -R 0.0 $PRODDIR/ ((xset fp rehash 2> /dev/null) || true) #--------------------------------------------------------------------- # Note: For relevant credits and URLs, see the text files provided in # the package installation tree. [urls] url_debian = n/a url_home = n/a url_lfs = n/a url_tarball = n/a #--------------------------------------------------------------------- [history] 170910 Added Tex Gyre regular and math fonts 180608 Added GNU Unifont 240607 Updated Liberation fonts to 2.1.5