Skip to content

Commit

Permalink
add liberation fonts
Browse files Browse the repository at this point in the history
- were missing on mariux and hardcoded in paperless-ngx
  • Loading branch information
wwwutz committed Feb 21, 2024
1 parent e793572 commit 00cd1ac
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/ffmpeg-*
/jbig2enc-*
/jbig2dec-*
/liberation-fonts-*
/leptonica-*
/logs
/nginx-*
Expand Down
1 change: 1 addition & 0 deletions build.profile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ BUILD_tesseract=tesseract-5.3.4
BUILD_nginx=nginx-1.25.3
BUILD_jbig2enc=jbig2enc-0.28-17-gea05019
BUILD_jbig2dec=jbig2dec-0.20
BUILD_libfontttf=liberation-fonts-ttf-2.1.5

BUILD_paperless=paperless-ngx-2.5.3
1 change: 1 addition & 0 deletions buildall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ ln -fs "${logfile}" "${LOGS}/build.log"
[ -d "${BUILD_jbig2enc}" ] || ./jbig2enc.build.sh
[ -d "${BUILD_jbig2dec}" ] || ./jbig2dec.build.sh
[ -d "${BUILD_tesseract}" ] || ./tesseract.build.sh
[ -d "${BUILD_libfontttf}" ] || ./liberation-fonts-ttf.build.sh
[ -d "${BUILD_nginx}" ] || ./nginx.build.sh
./nginx.conf.build.sh
[ -d "$PROJECT/${BUILD_paperless}" ] || ./paperless-ngx.build.sh
Expand Down
34 changes: 34 additions & 0 deletions liberation-fonts-ttf.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash
{
set -x
set -e

. build.profile

function B_LIBFONTTTF {

[ -d "${PREFIX}" ] || { echo "PREFIX unset or not a directory";exit; }

# SRCURL="https://github.com/liberationfonts/liberation-fonts/files/7261482/liberation-fonts-ttf-2.1.5.tar.gz"
SRCURL="https://beehive.molgen.mpg.de/31b453e0b77bacde410a34a725b34f8a/liberation-fonts-ttf-2.1.5.tar.gz"

PREFIX="${PREFIX}/${BUILD_libfontttf}"

BUILD_PKG="${BUILD_libfontttf}"

mkdir -p "${PREFIX}"

test -e "${BUILD_PKG}.tar.gz" || wget -nv "${SRCURL}" -O "${BUILD_PKG}.tar.gz"
test -d "${BUILD_PKG}" || mkdir -pv "${BUILD_PKG}" && tar -xf "${BUILD_PKG}.tar.gz" --strip-components=1 -C "${BUILD_PKG}"

cd "${BUILD_PKG}"

for font in *.ttf; do
install -v -m 644 "${font}" "${PREFIX}/${font}"
done

}

B_LIBFONTTTF

}

0 comments on commit 00cd1ac

Please sign in to comment.