From 6fe6ab1200d7eb0c0855e2f4878aaa30cae4718e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A0=20Arrufat?=
 <1671644+arrufat@users.noreply.github.com>
Date: Thu, 19 Aug 2021 11:36:31 +0900
Subject: [PATCH] Install hinted Korean and Japanese fonts

Closes:
- https://bugs.archlinux.org/task/67607
- https://bugs.archlinux.org/task/65585
---
 trunk/PKGBUILD | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index cfa5d5395e63..56231176dc31 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -3,23 +3,25 @@
 # Contributor: Matt Spaulding <matt at mattops dot io>
 # Contributor: pyjano <pyjano at protonmail dot com>
 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
+# Contributor: AdriĆ  Arrufat <swiftscythe@gmail.com>
 
 pkgname=ttf-ibm-plex
 pkgver=5.2.1
-pkgrel=1
+pkgrel=2
 pkgdesc="IBM Plex Mono, Sans, and Serif"
 arch=('any')
 url='https://github.com/IBM/plex'
 license=('custom:OFL')
 source=("${url}/releases/download/v${pkgver}/TrueType.zip")
 provides=('ttf-font')
-sha256sums=('5564f79bfdc4a56f9f27aacc68b6b175ab205eba668e496f44a12051f3a337ad')
+sha256sums=('6ee1073ce3568de2b537a44c556f436020eea42b05864be0c4ed2e9c81ba099c')
 
 conflicts=('ibm-plex-fonts')
 
 package() {
     cd TrueType
-    install -Dm644 */*.ttf -t "${pkgdir}/usr/share/fonts/TTF"
+    find -name *.ttf ! -path "*/unhinted/*"  
+         -exec install -Dm644 {} -t "${pkgdir}/usr/share/fonts/TTF" \;
 
     # All the other licenses are the same as the one here...
     install -Dm644 IBM-Plex-Mono/license.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"