Package Details: python-compreffor 0.5.0-1

Git Clone URL: https://aur.archlinux.org/python-compreffor.git (read-only, click to copy)
Package Base: python-compreffor
Description: A CFF table suroutinizer for FontTools.
Upstream URL: https://github.com/googlefonts/compreffor
Licenses: Apache
Submitter: thrasibule
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 1
Popularity: 0.070216
First Submitted: 2019-08-18 01:21
Last Updated: 2020-03-26 00:57

Latest Comments

caleb commented on 2020-03-26 08:09

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 9f4547dd6fc1c3f4e9a612b3eb2bfcd8b0e95a86 Mon Sep 17 00:00:00 2001
From: Caleb Maclennan <caleb@alerque.com>
Date: Thu, 26 Mar 2020 11:05:10 +0300
Subject: [PATCH] Use stable URL, split build() and package(), cleanup per
 guidelines

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

diff --git a/.SRCINFO b/.SRCINFO
index b54aa9b..3d75053 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = python-compreffor
-   pkgdesc = A CFF table suroutinizer for FontTools.
+   pkgdesc = A CFF table suroutinizer for FontTools
    pkgver = 0.5.0
-   pkgrel = 1
+   pkgrel = 2
    url = https://github.com/googlefonts/compreffor
    arch = x86_64
    license = Apache
@@ -9,7 +9,7 @@ pkgbase = python-compreffor
    makedepends = python-setuptools
    depends = python
    depends = python-fonttools
-   source = https://pypi.org/packages/source/c/compreffor/compreffor-0.5.0.zip
+   source = https://files.pythonhosted.org/packages/source/c/compreffor/compreffor-0.5.0.zip
    sha256sums = b804999e0c256094e28a9cbb9306f6031b7cf6884bbb98fd44ad70eed6c4c2fd

 pkgname = python-compreffor
diff --git a/PKGBUILD b/PKGBUILD
index 3493fbb..72f4f4d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,30 @@
 # Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
-pkgname='python-compreffor'
-_pkgname='compreffor'
-pkgver='0.5.0'
-pkgrel=1
-pkgdesc="A CFF table suroutinizer for FontTools."
-url="https://github.com/googlefonts/compreffor"
-checkdepends=()
+# Contributor: Caleb Maclennan <caleb@alerque.com>
+
+pkgname=python-compreffor
+_pkgname=${pkgname#python-}
+pkgver=0.5.0
+pkgrel=2
+pkgdesc='A CFF table suroutinizer for FontTools'
+arch=('x86_64')
+url="https://github.com/googlefonts/$_pkgname"
+license=('Apache')
 depends=('python' 'python-fonttools')
 makedepends=('cython' 'python-setuptools')
-optdepends=()
-license=('Apache')
-arch=('x86_64')
-source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip")
+source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.zip")
 sha256sums=('b804999e0c256094e28a9cbb9306f6031b7cf6884bbb98fd44ad70eed6c4c2fd')

+build() {
+    cd "$_pkgname-$pkgver"
+   python setup.py build
+}
+
 check() {
-    cd "$srcdir/$_pkgname-$pkgver"
+    cd "$_pkgname-$pkgver"
     python setup.py test
 }

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