Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python-fontmake #3128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions archlinuxcn/python-booleanoperations/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Maintainer: taotieren <[email protected]>

pkgname=python-booleanoperations
_name=booleanOperations
pkgver=0.9.0
pkgrel=1
pkgdesc='Boolean operations on paths'
url='https://github.com/typemytype/booleanOperations'
license=('MIT')
arch=(any)
_pydeps=(pyclipper
fonttools)
depends=(python
"${_pydeps[@]/#/python-}")
checkdepends=(python-defcon
python-fontpens
python-pytest)
makedepends=(python-setuptools-scm)
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.zip)
sha256sums=('8cfa821c32ad374fa120d6b2e0b444ebeac57c91e6631528645fa19ac2a281b8')

build() {
cd "$_name-$pkgver"
python setup.py build_ext --inplace
python setup.py build
}

check() {
cd "$_name-$pkgver"
PYTHONPATH="$PWD/build/lib" pytest -v
}

package() {
cd "$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}

16 changes: 16 additions & 0 deletions archlinuxcn/python-booleanoperations/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
maintainers:
- github: taotieren

build_prefix: extra-x86_64
repo_depends:
- python-defcon
- python-fontpens
- python-pyclipper

post_build_script: |
git_pkgbuild_commit()

update_on:
- source: pypi
pypi: booleanOperations
- alias: python
42 changes: 42 additions & 0 deletions archlinuxcn/python-cffsubr/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Maintainer: taotieren <[email protected]>

pkgname=python-cffsubr
_name=${pkgname#python-}
pkgver=0.2.9.post1
pkgrel=1
pkgdesc='Standalone CFF subroutinizer based on AFDKO tx'
url='https://github.com/adobe-type-tools/cffsubr'
license=('Apache-2.0')
arch=(any)
depends=(python
python-fonttools)
makedepends=(python-wheel
python-setuptools-git-ls-files
python-setuptools-scm
git)
checkdepends=(python-pytest)
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
sha256sums=('6b31412dcf49c8fa84664bda867e2eddc55b6fe6fa696ff253c4f13a9ff2fc5c')

prepare() {
cd "$_name-$pkgver"
git submodule update --init --recursive
}

build() {
cd "$_name-$pkgver"
python setup.py build_ext --inplace
python setup.py build
}

check() {
cd "$_name-$pkgver"
PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-${python_version}" pytest -v
}

package() {
cd "$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}

14 changes: 14 additions & 0 deletions archlinuxcn/python-cffsubr/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
maintainers:
- github: taotieren

build_prefix: extra-x86_64
repo_depends:
- python-setuptools-git-ls-files

post_build_script: |
git_pkgbuild_commit()

update_on:
- source: pypi
pypi: cffsubr
- alias: python
37 changes: 37 additions & 0 deletions archlinuxcn/python-compreffor/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Maintainer: taotieren <[email protected]>

pkgname=python-compreffor
_name=${pkgname#python-}
pkgver=0.5.3
pkgrel=1
pkgdesc='A CFF table subroutinizer for FontTools'
url='https://github.com/googlefonts/compreffor'
license=('Apache-2.0')
arch=(any)
depends=(python
python-fonttools)
checkdepends=(python-pytest)
makedepends=(cython
python-setuptools-git-ls-files
python-setuptools-scm
python-wheel)
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
sha256sums=('7d41296d4fb0aa1ef696dfd925d2af3227d4030622be99b3c7d4107dc6f8713a')

build() {
cd "$_name-$pkgver"
python setup.py build_ext --inplace
python setup.py build
}

check() {
cd "$_name-$pkgver"
PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-${python_version}" pytest -v
}

package() {
cd "$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}

15 changes: 15 additions & 0 deletions archlinuxcn/python-compreffor/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
maintainers:
- github: taotieren

build_prefix: extra-x86_64

repo_depends:
- python-setuptools-git-ls-files

post_build_script: |
git_pkgbuild_commit()

update_on:
- source: pypi
pypi: compreffor
- alias: python
39 changes: 39 additions & 0 deletions archlinuxcn/python-cu2qu/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Maintainer: taotieren <[email protected]>

pkgname=python-cu2qu
_name=${pkgname#python-}
pkgver=1.6.7.post2
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,wheel}
python-setuptools-scm)
checkdepends=(python-coverage
python-pytest-runner)
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.zip)
sha256sums=('1df562d99bd6059226088f443702bf51cfdd8cc63623f23137459a78d7bf5808')

build() {
cd "$_name-$pkgver"
python -m build -wn
}

check() {
cd "$_name-$pkgver"
PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-${python_version}" pytest -v
}

package() {
cd "$_name-$pkgver"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}

15 changes: 15 additions & 0 deletions archlinuxcn/python-cu2qu/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
maintainers:
- github: taotieren

build_prefix: extra-x86_64

repo_depends:
- python-defcon

post_build_script: |
git_pkgbuild_commit()

update_on:
- source: pypi
pypi: cu2qu
- alias: python
35 changes: 35 additions & 0 deletions archlinuxcn/python-defcon/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Maintainer: taotieren <[email protected]>

pkgname=python-defcon
_name=${pkgname#python-}
pkgver=0.10.2
pkgrel=1
pkgdesc='A set of UFO based objects for use in font editing applications.'
url='https://github.com/robotools/defcon'
license=('MIT')
arch=(any)
_pydeps=(fonttools
fs # for fonttools[ufo]
unicodedata2) # for fonttools[unicode]
depends=(python
"${_pydeps[@]/#/python-}")
makedepends=(python-{build,installer}
python-setuptools-scm
python-wheel
git)
optdepends=(python-fontpens
python-lxml)
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.zip)
sha256sums=('aee396e6d69e45ae65c8264781392d4c29116934b2737ad76d8230b40c182a44')

build() {
cd "$_name-$pkgver"
python -m build -wn
}

package() {
cd "$_name-$pkgver"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm644 License.txt "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}

15 changes: 15 additions & 0 deletions archlinuxcn/python-defcon/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
maintainers:
- github: taotieren

build_prefix: extra-x86_64

repo_depends:
- python-fontpens

post_build_script: |
git_pkgbuild_commit()

update_on:
- source: pypi
pypi: defcon
- alias: python
51 changes: 51 additions & 0 deletions archlinuxcn/python-fontmake/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Maintainer: taotieren <[email protected]>

pkgname=python-fontmake
_name=${pkgname#python-}
pkgver=3.5.1
pkgrel=1
pkgdesc='Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)'
url='https://github.com/googlefonts/fontmake'
license=('Apache-2.0')
arch=(any)
_pydeps=(attrs
fontmath
fonttools
fs # for fonttools[ufo]
glyphslib
lxml # for fonttools[lxml] and defcon[lxml]
ttfautohint-py
ufo2ft
ufolib2
unicodedata2) # for fonttools[unicode]
depends=(python
"${_pydeps[@]/#/python-}")
checkdepends=(python-compreffor
python-defcon
python-mutatormath
python-pytest
python-skia-pathops)
makedepends=(python-{build,installer}
python-setuptools-scm
python-wheel)
optdepends=(python-mutatormath
python-skia-pathops)
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.zip)
sha256sums=('9e3240acdabb9e1768ab44a2dfe4540c4f95252c2e52f93e7bb59eb8d6a5b8ad')

build() {
cd "$_name-$pkgver"
python -m build -wn
}

check() {
cd "$_name-$pkgver"
PYTHONPATH="$PWD/build/lib" pytest -v
}

package() {
cd "$_name-$pkgver"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}

22 changes: 22 additions & 0 deletions archlinuxcn/python-fontmake/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
maintainers:
- github: taotieren

build_prefix: extra-x86_64
repo_depends:
- python-compreffor
- python-defcon
- python-fontpens
- python-fontmath
- python-glyphslib
- python-ttfautohint-py
- python-mutatormath
- python-skia-pathops
- python-ufo2ft

post_build_script: |
git_pkgbuild_commit()

update_on:
- source: pypi
pypi: fontmake
- alias: python
34 changes: 34 additions & 0 deletions archlinuxcn/python-fontmath/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Maintainer: taotieren <[email protected]>

pkgname=python-fontmath
_name=fontMath
pkgver=0.9.3
pkgrel=1
pkgdesc='A collection of objects that implement fast font, glyph, etc. math.'
url='https://github.com/robotools/fontMath'
license=('MIT')
arch=(any)
depends=(python-fonttools)
checkdepends=(python-pytest)
makedepends=(python-{build,installer}
python-setuptools-scm
python-wheel)
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.zip)
sha256sums=('6a5387cb7feb105958db2f5ceedc878513cc35bf3715e262090f0557be0c1b1c')

build() {
cd "$_name-$pkgver"
python -m build -wn
}

check() {
cd "$_name-$pkgver"
pytest -v
}

package() {
cd "$_name-$pkgver"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm644 License.txt "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}

Loading