aboutsummaryrefslogtreecommitdiff
path: root/system/gnu-unifont/gnu-unifont.SlackBuild
diff options
context:
space:
mode:
authorTomasz Bywalec <t.bywalec@gmail.com>2020-11-29 11:28:06 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-12-05 23:14:06 +0700
commitcc729241a150f9d2636e5d4a8783d7ffe42a2ff1 (patch)
tree398757098c593741714befc42acd5eccedf7e9fc /system/gnu-unifont/gnu-unifont.SlackBuild
parent38c69bab05be09cff287b3407fd1f8fcfe21b3a5 (diff)
system/gnu-unifont: Updated for version 13.0.04, added OTB font format.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/gnu-unifont/gnu-unifont.SlackBuild')
-rw-r--r--system/gnu-unifont/gnu-unifont.SlackBuild13
1 files changed, 12 insertions, 1 deletions
diff --git a/system/gnu-unifont/gnu-unifont.SlackBuild b/system/gnu-unifont/gnu-unifont.SlackBuild
index 8fb1ec918f464..ad05b4f6d3ba9 100644
--- a/system/gnu-unifont/gnu-unifont.SlackBuild
+++ b/system/gnu-unifont/gnu-unifont.SlackBuild
@@ -25,7 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=gnu-unifont
-VERSION=${VERSION:-13.0.03}
+VERSION=${VERSION:-13.0.04}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -85,6 +85,17 @@ if contains "$FONTFORMATS" "psf"; then
FONTSCOPIED=1
fi
+if contains "$FONTFORMATS" "otb"; then
+ mkdir -p $PKG/usr/share/fonts/misc
+ for pcf_file in *.pcf.gz; do
+ echo "Converting '$pcf_file' to OTB format."
+ otb_file=$(echo "$pcf_file" | sed 's/\.pcf\.gz$/.otb/g')
+ fonttosfnt -o "$PKG/usr/share/fonts/misc/$otb_file" "$pcf_file"
+ done
+
+ FONTSCOPIED=1
+fi
+
cd -
if [ "$FONTSCOPIED" -eq 0 ]; then