Skip to content

Commit

Permalink
Update python-cffsubr-git
Browse files Browse the repository at this point in the history
  • Loading branch information
taotieren committed Jan 30, 2023
1 parent 543e4c6 commit 9c45b91
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
39 changes: 39 additions & 0 deletions archlinuxcn/python-cffsubr-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Maintainer: taotieren <admin@taotieren.com>

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
}

13 changes: 13 additions & 0 deletions archlinuxcn/python-cffsubr-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9c45b91

Please sign in to comment.