Subject: [PATCH] testing/font-ipa: fix build

From: Wolf <[email-masked]>
Date: Sun, 14 Nov 2021 14:02:10 +0100

---
I'm not that sure what commit message should be, so I hope this one is
fine. If not, either feel free to change it or let me know and I'll send
v2.

 testing/font-ipa/APKBUILD | 35 ++++++++++++++++-------------------
 1 file changed, 16 insertions(+), 19 deletions(-)

diff --git a/testing/font-ipa/APKBUILD b/testing/font-ipa/APKBUILD
index f5e6d7f22a..d07b514b61 100644
--- a/testing/font-ipa/APKBUILD
+++ b/testing/font-ipa/APKBUILD
@@ -1,26 +1,23 @@
 # Contributor: Adrian Siekierka <[email-masked]>
-# Maintainer:
+# Contributor: Tomas Volf <[email-masked]>
+# Maintainer: Tomas Volf <[email-masked]>
 pkgname=font-ipa
-pkgver=003.03
-pkgrel=1
-pkgdesc="Japanese outline fonts by Information-technology Promotion Agency"
-url="http://ipafont.ipa.go.jp/"
-arch="" # source= is no longer present
+pkgver=00303
+pkgrel=0
+pkgdesc="Japanese outline fonts by Information-technology Promotion Agency, Japan (IPA)"
+url="https://www.ipa.go.jp/"
+arch="noarch"
 license="IPA"
-depends="encodings font-alias mkfontscale mkfontdir fontconfig"
-makedepends=""
-filever=${pkgver/./}
-source="https://ipafont.ipa.go.jp/IPAfont/IPAfont$filever.zip"
-builddir="$srcdir/IPAfont$filever"
+depends="fontconfig"
+options="!check" # No test suite
+install=""
+source="https://data.wolfsden.cz/mirror/IPAfont$pkgver.zip"
+builddir="$srcdir/IPAfont$pkgver"
 
 package() {
-	cd "$builddir"
-
-	install -d "${pkgdir}/usr/share/fonts/TTF"
-	install -m644 *.ttf "${pkgdir}/usr/share/fonts/TTF/"
-
-	install -d "${pkgdir}/usr/share/licenses/font-ipa"
-	install -m644 IPA_Font_License_Agreement_v1.0.txt "${pkgdir}/usr/share/licenses/font-ipa/"
+	install -Dm644 -t "$pkgdir"/usr/share/fonts/ipafont *.ttf
 }
 
-sha512sums="d3e4a1f189356b7a8b0cba9c706987413c8107f9e43ab2ccf52be6d0483efad8c97b68e075a35c5d04603c460dac7f282c4645ddc8318e993368ec47407f894e  IPAfont00303.zip"
+sha512sums="
+d3e4a1f189356b7a8b0cba9c706987413c8107f9e43ab2ccf52be6d0483efad8c97b68e075a35c5d04603c460dac7f282c4645ddc8318e993368ec47407f894e  IPAfont00303.zip
+"
-- 
2.33.1