[arch-commits] Commit in python-fonttools/trunk (PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Mon Dec 20 09:42:26 UTC 2021


    Date: Monday, December 20, 2021 @ 09:42:25
  Author: alerque
Revision: 1079721

upgpkg: python-fonttools 4.28.5-1

Modified:
  python-fonttools/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-20 09:41:53 UTC (rev 1079720)
+++ PKGBUILD	2021-12-20 09:42:25 UTC (rev 1079721)
@@ -4,15 +4,20 @@
 # Contributor: flying sheep <flying-sheep at web.de>
 
 pkgname=python-fonttools
-pkgver=4.28.4
+_pyname=${pkgname#python-}
+pkgver=4.28.5
 pkgrel=1
 pkgdesc='A library to manipulate font files from Python'
-url='https://github.com/fonttools/fonttools'
+url="https://github.com/fonttools/$_pyname"
 license=('MIT')
 arch=('x86_64')
 depends=('python')
 makedepends=('cython'
              'python-setuptools')
+checkdepends=('python-brotli'
+              'python-fs'
+              'python-pytest'
+              'python-ufolib2')
 optdepends=('python-brotli: to compress/decompress WOFF 2.0 web fonts'
             'python-fs: to read/write UFO source files'
             'python-lxml: faster backend for XML files reading/writing'
@@ -24,26 +29,22 @@
             'python-sympy: for symbolic font statistics analysis'
             'python-unicodedata2: for displaying the Unicode character names when dumping the cmap table with ttx'
             'python-zopfli: faster backend fom WOFF 1.0 web fonts compression')
-checkdepends=('python-brotli'
-              'python-fs'
-              'python-pytest'
-              'python-ufolib2')
-source=("https://github.com/fonttools/fonttools/archive/$pkgver/fonttools-$pkgver.zip")
-sha256sums=('9656a5d48ac54345c55676ceb4e2a01e6431811504bdcc48b4484a563bb8608c')
+source=("$url/archive/$pkgver/$_pyname-$pkgver.tar.gz")
+sha256sums=('77d22ec2684d75f48176fe21f317c8f13a5abed3f00e2d4772b2f4a3acc012d1')
 
 build() {
-	cd "fonttools-$pkgver"
+	cd "$_pyname-$pkgver"
 	python setup.py build_ext --inplace
 	python setup.py build
 }
 
 check() {
-	cd "fonttools-$pkgver"
+	cd "$_pyname-$pkgver"
 	PYTHONPATH=Lib pytest
 }
 
 package() {
-	cd "fonttools-$pkgver"
+	cd "$_pyname-$pkgver"
 	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 	install -Dm0755 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
 }



More information about the arch-commits mailing list