Package Details: python-ufolib2 0.7.1-1

Git Clone URL: https://aur.archlinux.org/python-ufolib2.git (read-only, click to copy)
Package Base: python-ufolib2
Description: A UFO font library
Upstream URL: https://github.com/fonttols/ufoLib2
Licenses: Apache
Submitter: thrasibule
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 2
Popularity: 0.55
First Submitted: 2019-11-04 01:56
Last Updated: 2020-05-06 01:02

Latest Comments

caleb commented on 2020-03-26 08:35

Similar to the patch I just sent for python-skia-pathops, this uses a more stable download URL, splits the build() and package() phases and makes a few other touchups inline with the general and python specific Arch package guidelines. Please consider applying the following using git am:

From b8f54b5619bd9f60b002c3d5c11a4858757137bc Mon Sep 17 00:00:00 2001
From: Caleb Maclennan <caleb@alerque.com>
Date: Thu, 26 Mar 2020 11:16:36 +0300
Subject: [PATCH 1/2] Use stable URL, split build() and package(), cleanup per
 guidelines

Signed-off-by: Caleb Maclennan <caleb@alerque.com>
---
 .SRCINFO | 10 +++++-----
 PKGBUILD | 38 ++++++++++++++++++++++----------------
 2 files changed, 27 insertions(+), 21 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index ae0e422..d03cdd7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
 pkgbase = python-ufolib2
-   pkgdesc = A UFO font library.
+   pkgdesc = A UFO font library
    pkgver = 0.6.0
-   pkgrel = 1
-   url = https://github.com/fonttols/ufoLib2
+   pkgrel = 2
+   url = https://github.com/fonttools/ufoLib2
    arch = any
    license = Apache
    checkdepends = python-pytest
    makedepends = python-setuptools
    depends = python
-   depends = python-fonttools
    depends = python-attrs
-   source = https://pypi.org/packages/source/u/ufoLib2/ufoLib2-0.6.0.zip
+   depends = python-fonttools
+   source = https://files.pythonhosted.org/packages/source/u/ufoLib2/ufoLib2-0.6.0.zip
    sha256sums = 6e6b42e45b00e0b7814489ace5ceaf83e6fb3ff071adc33bdd694853730b2b81

 pkgname = python-ufolib2
diff --git a/PKGBUILD b/PKGBUILD
index 209cc5c..2e0f1d9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,31 @@
 # Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
-pkgname='python-ufolib2'
-_pkgname='ufoLib2'
-pkgver='0.6.0'
-pkgrel=1
-pkgdesc="A UFO font library."
-url="https://github.com/fonttols/ufoLib2"
-checkdepends=('python-pytest')
-depends=('python' 'python-fonttools' 'python-attrs')
-makedepends=('python-setuptools')
-optdepends=()
-license=('Apache')
+# Contributor: Caleb Maclennan <caleb@alerque.com>
+
+pkgname=python-ufolib2
+_pkgname=ufoLib2
+pkgver=0.6.0
+pkgrel=2
+pkgdesc='A UFO font library'
 arch=('any')
-source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip")
+url="https://github.com/fonttools/$_pkgname"
+license=('Apache')
+depends=('python' 'python-attrs' 'python-fonttools')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.zip")
 sha256sums=('6e6b42e45b00e0b7814489ace5ceaf83e6fb3ff071adc33bdd694853730b2b81')

-package() {
-    cd "${srcdir}/${_pkgname}-${pkgver}"
-    python setup.py install --root="${pkgdir}" --optimize=1
+build() {
+    cd "$_pkgname-$pkgver"
+    python setup.py build
 }

 check() {
-    cd "$srcdir/$_pkgname-${pkgver}"
+    cd "$_pkgname-$pkgver"
     PYTHONPATH=src pytest tests
 }
+
+package() {
+    cd "$_pkgname-$pkgver"
+    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
-- 
2.26.0

And while I'm here, the package needs another bump:

From 3466bd57be346219fdf3616446ab1a40bc6c5077 Mon Sep 17 00:00:00 2001
From: Caleb Maclennan <caleb@alerque.com>
Date: Thu, 26 Mar 2020 11:28:35 +0300
Subject: [PATCH] Update to 0.6.2

Signed-off-by: Caleb Maclennan <caleb@alerque.com>
---
 .SRCINFO | 8 ++++----
 PKGBUILD | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index d03cdd7..d3f49f0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = python-ufolib2
    pkgdesc = A UFO font library
-   pkgver = 0.6.0
-   pkgrel = 2
+   pkgver = 0.6.2
+   pkgrel = 1
    url = https://github.com/fonttools/ufoLib2
    arch = any
    license = Apache
@@ -10,8 +10,8 @@ pkgbase = python-ufolib2
    depends = python
    depends = python-attrs
    depends = python-fonttools
-   source = https://files.pythonhosted.org/packages/source/u/ufoLib2/ufoLib2-0.6.0.zip
-   sha256sums = 6e6b42e45b00e0b7814489ace5ceaf83e6fb3ff071adc33bdd694853730b2b81
+   source = https://files.pythonhosted.org/packages/source/u/ufoLib2/ufoLib2-0.6.2.zip
+   sha256sums = 7b4f8915eb311eb302a01e7a287cb38df93c2c0baf9b2babc12dad5c1b6f0609

 pkgname = python-ufolib2

diff --git a/PKGBUILD b/PKGBUILD
index 2e0f1d9..642f9dd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,8 @@

 pkgname=python-ufolib2
 _pkgname=ufoLib2
-pkgver=0.6.0
-pkgrel=2
+pkgver=0.6.2
+pkgrel=1
 pkgdesc='A UFO font library'
 arch=('any')
 url="https://github.com/fonttools/$_pkgname"
@@ -13,7 +13,7 @@ depends=('python' 'python-attrs' 'python-fonttools')
 makedepends=('python-setuptools')
 checkdepends=('python-pytest')
 source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.zip")
-sha256sums=('6e6b42e45b00e0b7814489ace5ceaf83e6fb3ff071adc33bdd694853730b2b81')
+sha256sums=('7b4f8915eb311eb302a01e7a287cb38df93c2c0baf9b2babc12dad5c1b6f0609')

 build() {
     cd "$_pkgname-$pkgver"
-- 
2.26.0