From 8d2da8dae142fb2d969f080aae1d637ab9b89670 Mon Sep 17 00:00:00 2001 From: taotieren Date: Mon, 30 Jan 2023 21:57:21 +0800 Subject: [PATCH] Add python-cu2qu-git --- .../python-booleanoperations-git/lilac.yaml | 1 + archlinuxcn/python-cffsubr-git/lilac.yaml | 1 + archlinuxcn/python-compreffor-git/PKGBUILD | 2 +- archlinuxcn/python-compreffor-git/lilac.yaml | 1 + archlinuxcn/python-cu2qu-git/PKGBUILD | 45 +++++++++++++++++++ archlinuxcn/python-cu2qu-git/lilac.yaml | 14 ++++++ archlinuxcn/python-fontmath-git/lilac.yaml | 1 + archlinuxcn/python-fontparts-git/lilac.yaml | 1 + archlinuxcn/python-fontpens-git/lilac.yaml | 1 + archlinuxcn/python-glyphslib-git/lilac.yaml | 1 + archlinuxcn/python-mutatormath-git/lilac.yaml | 1 + .../python-openstep-plist-git/lilac.yaml | 1 + .../lilac.yaml | 1 + .../python-skia-pathops-git/lilac.yaml | 1 + .../python-ttfautohint-py-git/lilac.yaml | 1 + 15 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 archlinuxcn/python-cu2qu-git/PKGBUILD create mode 100644 archlinuxcn/python-cu2qu-git/lilac.yaml diff --git a/archlinuxcn/python-booleanoperations-git/lilac.yaml b/archlinuxcn/python-booleanoperations-git/lilac.yaml index 3ab2e9bd404..8d3fefe40bc 100644 --- a/archlinuxcn/python-booleanoperations-git/lilac.yaml +++ b/archlinuxcn/python-booleanoperations-git/lilac.yaml @@ -7,6 +7,7 @@ pre_build: vcs_update post_build_script: | git_pkgbuild_commit() + update_aur_repo() update_on: - source: github diff --git a/archlinuxcn/python-cffsubr-git/lilac.yaml b/archlinuxcn/python-cffsubr-git/lilac.yaml index 0a11ec069a5..4d8aaed95d4 100644 --- a/archlinuxcn/python-cffsubr-git/lilac.yaml +++ b/archlinuxcn/python-cffsubr-git/lilac.yaml @@ -7,6 +7,7 @@ pre_build: vcs_update post_build_script: | git_pkgbuild_commit() + update_aur_repo() update_on: - source: github diff --git a/archlinuxcn/python-compreffor-git/PKGBUILD b/archlinuxcn/python-compreffor-git/PKGBUILD index 078f76a5bba..56d79bffa96 100644 --- a/archlinuxcn/python-compreffor-git/PKGBUILD +++ b/archlinuxcn/python-compreffor-git/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: taotieren -pkgname=python-python-compreffor-git +pkgname=python-compreffor-git pkgver=0.5.3.r0.g3678d3e pkgrel=1 pkgdesc='A CFF table subroutinizer for FontTools' diff --git a/archlinuxcn/python-compreffor-git/lilac.yaml b/archlinuxcn/python-compreffor-git/lilac.yaml index 8e71df2a1e8..08bba5f7436 100644 --- a/archlinuxcn/python-compreffor-git/lilac.yaml +++ b/archlinuxcn/python-compreffor-git/lilac.yaml @@ -7,6 +7,7 @@ pre_build: vcs_update post_build_script: | git_pkgbuild_commit() + update_aur_repo() update_on: - source: github diff --git a/archlinuxcn/python-cu2qu-git/PKGBUILD b/archlinuxcn/python-cu2qu-git/PKGBUILD new file mode 100644 index 00000000000..0e86a6a47ab --- /dev/null +++ b/archlinuxcn/python-cu2qu-git/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: taotieren + +pkgname=python-cu2qu-git +pkgver=1.6.7.post2.r0.g4cbc9b6 +pkgrel=1 +pkgdesc='Cubic-to-quadratic bezier curve conversion' +url='https://github.com/googlefonts/cu2qu' +license=('Apache') +arch=(any) +_pydeps=(defcon + fonttools + fs) +depends=(python + "${_pydeps[@]/#/python-}") +makedepends=(cython + python-{build,installer} + python-setuptools-scm) +checkdepends=(git + python-coverage + python-pytest-runner) +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("$pkgname::git+$url.git") +sha256sums=('SKIP') + +pkgver() { + cd "$pkgname" + git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$pkgname" + python -m build -wn +} + +check() { + cd "$pkgname" + PYTHONPATH=tests pytest +} + +package() { + cd "$pkgname" + python -m installer -d "$pkgdir" dist/*.whl +} + diff --git a/archlinuxcn/python-cu2qu-git/lilac.yaml b/archlinuxcn/python-cu2qu-git/lilac.yaml new file mode 100644 index 00000000000..16aa8ae6369 --- /dev/null +++ b/archlinuxcn/python-cu2qu-git/lilac.yaml @@ -0,0 +1,14 @@ +maintainers: + - github: taotieren + +build_prefix: archlinuxcn-x86_64 + +pre_build: vcs_update + +post_build_script: | + git_pkgbuild_commit() + update_aur_repo() + +update_on: + - source: github + github: googlefonts/cu2qu diff --git a/archlinuxcn/python-fontmath-git/lilac.yaml b/archlinuxcn/python-fontmath-git/lilac.yaml index 1c76c46c9e0..70a86a3f9d3 100644 --- a/archlinuxcn/python-fontmath-git/lilac.yaml +++ b/archlinuxcn/python-fontmath-git/lilac.yaml @@ -7,6 +7,7 @@ pre_build: vcs_update post_build_script: | git_pkgbuild_commit() + update_aur_repo() update_on: - source: github diff --git a/archlinuxcn/python-fontparts-git/lilac.yaml b/archlinuxcn/python-fontparts-git/lilac.yaml index 69edeba34e6..49d8ebe0d08 100644 --- a/archlinuxcn/python-fontparts-git/lilac.yaml +++ b/archlinuxcn/python-fontparts-git/lilac.yaml @@ -7,6 +7,7 @@ pre_build: vcs_update post_build_script: | git_pkgbuild_commit() + update_aur_repo() update_on: - source: github diff --git a/archlinuxcn/python-fontpens-git/lilac.yaml b/archlinuxcn/python-fontpens-git/lilac.yaml index b8183f95ba1..ac86933fd62 100644 --- a/archlinuxcn/python-fontpens-git/lilac.yaml +++ b/archlinuxcn/python-fontpens-git/lilac.yaml @@ -7,6 +7,7 @@ pre_build: vcs_update post_build_script: | git_pkgbuild_commit() + update_aur_repo() update_on: - source: github diff --git a/archlinuxcn/python-glyphslib-git/lilac.yaml b/archlinuxcn/python-glyphslib-git/lilac.yaml index 0e9ed13047c..01006c20df9 100644 --- a/archlinuxcn/python-glyphslib-git/lilac.yaml +++ b/archlinuxcn/python-glyphslib-git/lilac.yaml @@ -7,6 +7,7 @@ pre_build: vcs_update post_build_script: | git_pkgbuild_commit() + update_aur_repo() update_on: - source: github diff --git a/archlinuxcn/python-mutatormath-git/lilac.yaml b/archlinuxcn/python-mutatormath-git/lilac.yaml index 5bad5ee0237..00dc2173eeb 100644 --- a/archlinuxcn/python-mutatormath-git/lilac.yaml +++ b/archlinuxcn/python-mutatormath-git/lilac.yaml @@ -7,6 +7,7 @@ pre_build: vcs_update post_build_script: | git_pkgbuild_commit() + update_aur_repo() update_on: - source: github diff --git a/archlinuxcn/python-openstep-plist-git/lilac.yaml b/archlinuxcn/python-openstep-plist-git/lilac.yaml index 31a72718d03..5d7a7834b7c 100644 --- a/archlinuxcn/python-openstep-plist-git/lilac.yaml +++ b/archlinuxcn/python-openstep-plist-git/lilac.yaml @@ -7,6 +7,7 @@ pre_build: vcs_update post_build_script: | git_pkgbuild_commit() + update_aur_repo() update_on: - source: github diff --git a/archlinuxcn/python-setuptools-git-ls-files-git/lilac.yaml b/archlinuxcn/python-setuptools-git-ls-files-git/lilac.yaml index 19fe1008586..486a96b5a63 100644 --- a/archlinuxcn/python-setuptools-git-ls-files-git/lilac.yaml +++ b/archlinuxcn/python-setuptools-git-ls-files-git/lilac.yaml @@ -7,6 +7,7 @@ pre_build: vcs_update post_build_script: | git_pkgbuild_commit() + update_aur_repo() update_on: - source: github diff --git a/archlinuxcn/python-skia-pathops-git/lilac.yaml b/archlinuxcn/python-skia-pathops-git/lilac.yaml index eb2bab36a19..6055bcf205c 100644 --- a/archlinuxcn/python-skia-pathops-git/lilac.yaml +++ b/archlinuxcn/python-skia-pathops-git/lilac.yaml @@ -7,6 +7,7 @@ pre_build: vcs_update post_build_script: | git_pkgbuild_commit() + update_aur_repo() update_on: - source: github diff --git a/archlinuxcn/python-ttfautohint-py-git/lilac.yaml b/archlinuxcn/python-ttfautohint-py-git/lilac.yaml index d0c57689eb6..34b03a261a9 100644 --- a/archlinuxcn/python-ttfautohint-py-git/lilac.yaml +++ b/archlinuxcn/python-ttfautohint-py-git/lilac.yaml @@ -7,6 +7,7 @@ pre_build: vcs_update post_build_script: | git_pkgbuild_commit() + update_aur_repo() update_on: - source: github