Browse Source

dejavu-ttf-fonts: reworked .conf not assuming the ttfdir already exists

early
Alejandro Mery 17 years ago
parent
commit
e9612f8aa8
  1. 10
      fonts/dejavu-ttf-fonts/dejavu-ttf-fonts.conf

10
fonts/dejavu-ttf-fonts/dejavu-ttf-fonts.conf

@ -3,7 +3,6 @@
#
# Filename: package/.../dejavu-ttf-fonts/dejavu-ttf-fonts.conf
# Copyright (C) 2008 The OpenSDE Project
# Copyright (C) 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
@ -16,4 +15,11 @@
makeopt=
makeinstopt=
hook_add postmake 5 'cp -vf ttf/*.ttf $root/usr/X11/lib/X11/fonts/TTF/'
fonts_install()
{
local ttfdir="$root/usr/X11/lib/X11/fonts/TTF"
mkdir -p "$ttfdir"
cp -vf ttf/*.ttf "$ttfdir/"
}
hook_add postmake 5 'fonts_install'

Loading…
Cancel
Save