Balló György pushed to branch main at Arch Linux / Packaging / Packages / 
webfont-kit-generator


Commits:
6da7dc26 by Balló György at 2025-03-25T03:30:36+01:00
upgpkg: 1.2.0-3: Fix downloading Google Fonts

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + webfont-kit-generator-get-phrase.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = webfont-kit-generator
        pkgdesc = Utility to generate WOFF, WOFF2 and the necessary CSS 
boilerplate from non-web font formats (OTF & TTF)
        pkgver = 1.2.0
-       pkgrel = 2
+       pkgrel = 3
        url = https://apps.gnome.org/WebfontKitGenerator/
        arch = any
        license = GPL-3.0-or-later
@@ -21,6 +21,8 @@ pkgbase = webfont-kit-generator
        depends = python-fonttools
        depends = python-gobject
        source = 
git+https://github.com/rafaelmardojai/webfont-kit-generator.git#tag=1.2.0
+       source = webfont-kit-generator-get-phrase.patch
        b2sums = 
3267ebabe18f2399db2d994f0da65f682cf68852ddb7d8c0b32a2185d848ccc3fd757fbdac96fcd906f9ef0d952ecf29ff5a59d2088709ccbaeb6ffc2d5937b1
+       b2sums = 
2144b11f1e5d81de6f701c67bf98583caa55622ab69ecc6d0771d1af12c01e2aa190cfa05bfbf91fd6f41d1302646639d25062e0f4ca85c132d041e7661fc52b
 
 pkgname = webfont-kit-generator


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 
 pkgname=webfont-kit-generator
 pkgver=1.2.0
-pkgrel=2
+pkgrel=3
 pkgdesc='Utility to generate WOFF, WOFF2 and the necessary CSS boilerplate 
from non-web font formats (OTF & TTF)'
 arch=(any)
 url='https://apps.gnome.org/WebfontKitGenerator/'
@@ -26,8 +26,21 @@ makedepends=(
   git
   meson
 )
-source=("git+https://github.com/rafaelmardojai/webfont-kit-generator.git#tag=$pkgver";)
-b2sums=(3267ebabe18f2399db2d994f0da65f682cf68852ddb7d8c0b32a2185d848ccc3fd757fbdac96fcd906f9ef0d952ecf29ff5a59d2088709ccbaeb6ffc2d5937b1)
+source=(
+  "git+https://github.com/rafaelmardojai/webfont-kit-generator.git#tag=$pkgver";
+  webfont-kit-generator-get-phrase.patch
+)
+b2sums=(
+  
3267ebabe18f2399db2d994f0da65f682cf68852ddb7d8c0b32a2185d848ccc3fd757fbdac96fcd906f9ef0d952ecf29ff5a59d2088709ccbaeb6ffc2d5937b1
+  
2144b11f1e5d81de6f701c67bf98583caa55622ab69ecc6d0771d1af12c01e2aa190cfa05bfbf91fd6f41d1302646639d25062e0f4ca85c132d041e7661fc52b
+)
+
+prepare() {
+  cd $pkgname
+
+  # https://github.com/rafaelmardojai/webfont-kit-generator/pull/56
+  git apply -3 ../webfont-kit-generator-get-phrase.patch
+}
 
 build() {
   arch-meson $pkgname build


=====================================
webfont-kit-generator-get-phrase.patch
=====================================
@@ -0,0 +1,22 @@
+From 47a3b214bfa4ca5ff3b2ed77bd30f2f705eaad25 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <[email protected]>
+Date: Tue, 25 Mar 2025 03:05:59 +0100
+Subject: [PATCH] google: fix getting phase
+
+---
+ webfontkitgenerator/google.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/webfontkitgenerator/google.py b/webfontkitgenerator/google.py
+index 29a8764..597a559 100644
+--- a/webfontkitgenerator/google.py
++++ b/webfontkitgenerator/google.py
+@@ -122,7 +122,7 @@ def on_google_response(
+             response_headers = message.get_response_headers()
+ 
+             print(
+-                f'Google Fonts Response Status 
{status.get_phrase(status_code)}'
++                f'Google Fonts Response Status {status.get_phrase()}'
+             )
+ 
+             if status == Soup.Status.OK and 'kind' in data:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/webfont-kit-generator/-/commit/6da7dc26043902696594842f9650f3b69c15378f

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/webfont-kit-generator/-/commit/6da7dc26043902696594842f9650f3b69c15378f
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to