From 9c45b9108bcca26895b97d3fe18b615af96cdf2b Mon Sep 17 00:00:00 2001 From: taotieren Date: Mon, 30 Jan 2023 20:11:24 +0800 Subject: [PATCH] Update python-cffsubr-git --- archlinuxcn/python-cffsubr-git/PKGBUILD | 39 +++++++++++++++++++++++ archlinuxcn/python-cffsubr-git/lilac.yaml | 13 ++++++++ 2 files changed, 52 insertions(+) create mode 100644 archlinuxcn/python-cffsubr-git/PKGBUILD create mode 100644 archlinuxcn/python-cffsubr-git/lilac.yaml diff --git a/archlinuxcn/python-cffsubr-git/PKGBUILD b/archlinuxcn/python-cffsubr-git/PKGBUILD new file mode 100644 index 00000000000..9925070e937 --- /dev/null +++ b/archlinuxcn/python-cffsubr-git/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: taotieren + +pkgname=python-cffsubr-git +pkgver=0.2.9.post1.r0.g5999ae5 +pkgrel=1 +pkgdesc='Standalone CFF subroutinizer based on AFDKO tx' +url='https://github.com/adobe-type-tools/cffsubr' +license=('Apache') +arch=(any) +depends=(python + python-fonttools) +makedepends=(python-setuptools-git-ls-files + python-setuptools-scm) +checkdepends=(python-pytest) +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=src pytest tests +} + +package() { + cd "$pkgname" + python -m installer -d "$pkgdir" dist/*.whl +} + diff --git a/archlinuxcn/python-cffsubr-git/lilac.yaml b/archlinuxcn/python-cffsubr-git/lilac.yaml new file mode 100644 index 00000000000..0a11ec069a5 --- /dev/null +++ b/archlinuxcn/python-cffsubr-git/lilac.yaml @@ -0,0 +1,13 @@ +maintainers: + - github: taotieren + +build_prefix: archlinuxcn-x86_64 + +pre_build: vcs_update + +post_build_script: | + git_pkgbuild_commit() + +update_on: + - source: github + github: adobe-type-tools/cffsubr