Skip to content

Commit

Permalink
Add python-fontparts-git
Browse files Browse the repository at this point in the history
  • Loading branch information
taotieren committed Jan 29, 2023
1 parent ccce4c9 commit be42d62
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
47 changes: 47 additions & 0 deletions archlinuxcn/python-fontparts-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Maintainer: taotieren <[email protected]>

pkgname=python-fontparts-git
pkgver=0.11.0.r1.gf5250dc
pkgrel=1
pkgdesc='The replacement for RoboFab'
url='https://github.com/robotools/fontParts'
license=('MIT')
arch=(any)
_pydeps=(booleanoperations
defcon
fontmath
fontpens # for defcon[pens]
fonttools
fs # for fonttools[ufo]
lxml # for fonttools[lxml]
unicodedata2) # for fonttools[unicode]
depends=(python
"${_pydeps[@]/#/python-}")
makedepends=(python-{build,installer}
python-setuptools-scm
python-wheel)
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/Lib"
PYTHONPATH=. python "fontParts/fontshell/test.py"
}

package() {
cd "$pkgname"
python -m installer -d "$pkgdir" dist/*.whl
}

13 changes: 13 additions & 0 deletions archlinuxcn/python-fontparts-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: robotools/fontParts

0 comments on commit be42d62

Please sign in to comment.