diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..75144f1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = python-cu2qu + pkgdesc = Cubic-to-quadratic bezier curve conversion + pkgver = 1.6.7.post1 + pkgrel = 2 + url = https://github.com/googlefonts/cu2qu + arch = any + license = Apache + checkdepends = python-coverage + checkdepends = python-pytest-runner + makedepends = cython + makedepends = python-setuptools-scm + depends = python + depends = python-defcon + depends = python-fonttools + depends = python-fs + source = https://files.pythonhosted.org/packages/source/c/cu2qu/cu2qu-1.6.7.post1.zip + sha512sums = a0dbed28403ae2bbdbf4719d9e34d5861250dc1510129d658b336d773a5153e0955d5f2ff018f5f93d88394658918fad2a58aebb99cef998d4cf9128a300f489 + +pkgname = python-cu2qu diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f40aaba --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +pkg/ +src/ +*.tar.gz +*.tar.xz +*.zip diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..88510f3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,72 @@ +#!/bin/bash + +# Created from the original PKGBUILD by Caleb Maclennan and Guillaume Horel + +# Disable various shellcheck rules that produce false positives in this file. +# Repository rules should be added to the .shellcheckrc file located in the +# repository root directory, see https://github.com/koalaman/shellcheck/wiki +# and https://archiv8.github.io for further information. +# shellcheck disable=SC2034,SC2154 +# ToDo: Add files: User documentation +# ToDo: Add files: Tooling +# FixMe: Namcap warnings and errors + +# Maintainer: Ross Clark +# Contributor: Ross Clark + +_langname="python" +_relname="cu2qu" + +pkgname="${_langname}-${_relname}" +pkgver=1.6.7.post1 +pkgrel=2 +pkgdesc='Cubic-to-quadratic bezier curve conversion' +arch=( + "any" +) +url="https://github.com/googlefonts/cu2qu" +license=( + "Apache" +) +depends=( + "python" + "python-defcon" + "python-fonttools" + "python-fs" +) +makedepends=( + "cython" + "python-setuptools-scm" +) +checkdepends=( + "python-coverage" + "python-pytest-runner" +) +_tarname="$_relname-$pkgver" +source=( + "https://files.pythonhosted.org/packages/source/${_relname::1}/$_relname/$_tarname.zip" +) +sha512sums=( + 'a0dbed28403ae2bbdbf4719d9e34d5861250dc1510129d658b336d773a5153e0955d5f2ff018f5f93d88394658918fad2a58aebb99cef998d4cf9128a300f489' +) + +build() { + + cd "$_tarname" + + python setup.py build +} + +check() { + + cd "$_tarname" + + python setup.py test +} + +package() { + + cd "$_tarname" + + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +}