fix fonts

This commit is contained in:
Gwenhael Le Moine 2024-11-28 13:12:22 +01:00
parent 42c4947468
commit e8b2b921c9
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 7 additions and 4 deletions

View file

@ -43,9 +43,12 @@ case $VERSION in
;;
esac
mkdir -p "$PKG/usr/share/fonts/"
cp -avr "$REPOSITORY/bitmap/" "$PKG/usr/share/fonts/"
#chmod 0644 "$PKG/usr/share/fonts/*"
mkdir -p "$PKG/usr/share/fonts/bitmap/"
find "$REPOSITORY/bitmap/" -type f -name \*f -exec cp {} "$PKG/usr/share/fonts/bitmap/" \;
find "$PKG/usr/share/fonts/bitmap/" -name \*f -exec gzip -9 {} \;
find "$REPOSITORY/bitmap/" -type f -name \*.gz -exec cp {} "$PKG/usr/share/fonts/bitmap/" \;
mkdir -p "$PKG/usr/doc/$PRGNAM/"
cp -avr "$REPOSITORY/README.md" "$REPOSITORY/screenshots/" "$PKG/usr/doc/$PRGNAM/"

View file

@ -38,7 +38,7 @@ rm -rf $PKG
mkdir -p $PKG/usr/share/fonts/misc/
cd $PKG/usr/share/fonts/misc/
for i in /usr/share/fonts/misc/ter-u*; do
for i in /usr/share/fonts/misc/ter-u*.pcf.gz; do
f=$(echo $(basename $i) | sed 's|\.gz$||')
zcat $i > $f
fonttosfnt -o "${f/pcf/otb}" "$f"