summaryrefslogtreecommitdiffstats
path: root/fonts-x11/cozette/INSTALL
blob: d43db75fc0f5463673ce80427de58c1a3eb9ae50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
local PCF_DIR="${INSTALL_ROOT}/usr/share/fonts/X11/misc" &&
local OTF_DIR="${INSTALL_ROOT}/usr/share/fonts/X11/OTF" &&
local TTF_DIR="${INSTALL_ROOT}/usr/share/fonts/X11/TTF" &&

if [ ! -d "${PCF_DIR}" ]; then
  mkdir -p "${PCF_DIR}"
fi &&

install -vm 0644 *.pcf.gz "${PCF_DIR}" &&

if list_find "${COZETTE_FORMATS}" otb; then
  install -vm 0644 *.otb "${PCF_DIR}"
fi &&

if list_find "${COZETTE_FORMATS}" otf; then
  if [ ! -d "${OTF_DIR}" ]; then
    mkdir -p "${OTF_DIR}"
  fi &&

  install -vm 0644 *.otf "${OTF_DIR}"
fi &&

if list_find "${COZETTE_FORMATS}" ttf; then
  if [ ! -d "${TTF_DIR}" ]; then
    mkdir -p "${TTF_DIR}"
  fi &&

  install -vm 0644 *.ttf "${TTF_DIR}"
fi