Hello,
This patch updates unifont to the latest version, and it also finally
fixes the problem with packaging the TTF font.
Though now as the TTF font is no longer pre-compiled, packaging/compile
time has significantly increased (around 10 mins on my build server -
Core2Quad Q9400 and 8GiB of RAM).

-- 
Kind Regards,
Wael Karram.
From b31e0b7c574719ae96cbd595571156675ea8a198 Mon Sep 17 00:00:00 2001
From: wael <w...@waelk.tech>
Date: Sat, 17 May 2025 11:59:26 +0300
Subject: [PATCH] Updated unifont to 16.0.03

---
 pcr/unifont/PKGBUILD | 30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

diff --git a/pcr/unifont/PKGBUILD b/pcr/unifont/PKGBUILD
index 87de85462..dab191265 100644
--- a/pcr/unifont/PKGBUILD
+++ b/pcr/unifont/PKGBUILD
@@ -1,3 +1,4 @@
+
 # Maintainer: Wael Karram <w...@waelk.tech>
 # Contributor: bill-auger <bill-au...@programmer.net>
 # bdf-unifont:
@@ -41,30 +42,35 @@ pkgname=('bdf-unifont'
          'otf-unifont'
          'pcf-unifont'
          'psf-unifont'
-#         'ttf-unifont' # v15.1.04 fails to build
+         'ttf-unifont'
          'unifont-utils')
 pkgbase=unifont
-pkgver=15.1.05
+pkgver=16.0.03
 pkgrel=1
 pkgdesc="A free bitmap font with wide Unicode support (PCF, PSF and hex versions)"
 arch=('any')
 # arch=('armv7h' 'i686' 'x86_64') # for librestage (see NOTE above)
 url="http://unifoundry.com/";
 license=('GPL' 'custom:OFL')
+makedepends=('fontforge')
 source=("http://unifoundry.com/pub/unifont/unifont-$pkgver/unifont-$pkgver.tar.gz"{,.sig})
-sha256sums=('d275f55f4358750e0f86305b92e87b88eb330aa46c15f553d2edf047fb1c23fa'
+sha256sums=('2eee0454e7e570ac22b637f9f622a9c06cfc56e61931069d0d667ce5c2ae189e'
             'SKIP')
 validpgpkeys=('95D2E9AB8740D8046387FD151A09227B1F435A33') # Paul Hardy <unifoun...@unifoundry.com>
 
 build() {
   cd "${srcdir}"/${pkgbase}-${pkgver}
 
-  local variation
-  for variation in bold italic bolditalic; do
-    "mk$variation" "unifont-$pkgver.bdf" | gzip -c >"unifont-$variation-$pkgver.bdf.gz"
-  done
+#  local variation
+#  for variation in bold italic bolditalic; do
+#    "mk$variation" "unifont-$pkgver.bdf" | gzip -c >"unifont-$variation-$pkgver.bdf.gz"
+#  done
 
   make
+#  make hex
+  cd font
+  make && make clean
+  make -j4 truetype
 }
 
 package_bdf-unifont () {
@@ -146,12 +152,12 @@ package_ttf-unifont() {
   pkgdesc="A free bitmap font with wide Unicode support (TTF version)"
 
   # Install the font.
-  cd "$srcdir/unifont-$pkgver/font/precompiled"
+  cd "$srcdir/unifont-$pkgver"
   install -d "$pkgdir/usr/share/fonts/Unifont/"
-  install -m644 "unifont-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont.ttf"
-  install -m644 "unifont_jp-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_jp.ttf"
-  install -m644 "unifont_upper-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_Upper.ttf"
-  install -m644 "unifont_csur-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_CSUR.ttf"
+  install -Dm644 "font/compiled/unifont-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont.ttf"
+  install -Dm644 "font/compiled/unifont_jp-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_jp.ttf"
+  install -Dm644 "font/compiled/unifont_upper-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_Upper.ttf"
+  install -Dm644 "font/compiled/unifont_csur-$pkgver.ttf" "$pkgdir/usr/share/fonts/Unifont/Unifont_CSUR.ttf"
   # Install the license.
   cd "$srcdir/unifont-$pkgver"
   install -Dm644 OFL-1.1.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-- 
2.49.0

Attachment: pgpPP4pFE_SVN.pgp
Description: OpenPGP digital signature

_______________________________________________
Dev mailing list
Dev@lists.parabola.nu
https://lists.parabola.nu/mailman/listinfo/dev

Reply via email to