Skip to content

Commit

Permalink
Add python-fontmake extreme dependency package
Browse files Browse the repository at this point in the history
  • Loading branch information
taotieren committed Feb 3, 2023
1 parent 2e52e3a commit 4839d6d
Show file tree
Hide file tree
Showing 38 changed files with 1,116 additions and 0 deletions.
44 changes: 44 additions & 0 deletions archlinuxcn/python-booleanoperations-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Maintainer: taotieren <[email protected]>

pkgname=python-booleanoperations-git
pkgver=0.9.0.r3.g25f7091
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
git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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

check() {
cd "$pkgname"
python setup.py test
}

package() {
cd "$pkgname"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

14 changes: 14 additions & 0 deletions archlinuxcn/python-booleanoperations-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -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: typemytype/booleanOperations
47 changes: 47 additions & 0 deletions archlinuxcn/python-cffsubr-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Maintainer: taotieren <[email protected]>

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-2.0')
arch=(any)
depends=(python
python-fonttools)
makedepends=(git
python-wheel
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'
}

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

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

check() {
cd "$pkgname"
python setup.py test
}

package() {
cd "$pkgname"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

14 changes: 14 additions & 0 deletions archlinuxcn/python-cffsubr-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -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: adobe-type-tools/cffsubr
43 changes: 43 additions & 0 deletions archlinuxcn/python-compreffor-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Maintainer: taotieren <[email protected]>

pkgname=python-compreffor-git
pkgver=0.5.3.r0.g3678d3e
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
git)
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 setup.py build_ext --inplace
python setup.py build
}

check() {
cd "$pkgname"
PYTHONPATH="${PWD}/build/lib*/compreffor/test" pytest
}

package() {
cd "$pkgname"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

14 changes: 14 additions & 0 deletions archlinuxcn/python-compreffor-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -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/compreffor
45 changes: 45 additions & 0 deletions archlinuxcn/python-cu2qu-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Maintainer: taotieren <[email protected]>

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
git
python-{build,installer,wheel}
python-setuptools-scm)
checkdepends=(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="$PWD/Lib" pytest tests
}

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

14 changes: 14 additions & 0 deletions archlinuxcn/python-cu2qu-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -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
46 changes: 46 additions & 0 deletions archlinuxcn/python-defcon-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Maintainer: taotieren <[email protected]>

pkgname=python-defcon-git
pkgver=0.10.2.r0.g2498713
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)
checkdepends=(python-pytest)
optdepends=(python-fontpens
python-lxml)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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

check() {
cd "$pkgname"
PYTHONPATH="$PWD/build/lib/defcon" pytest test
}

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

13 changes: 13 additions & 0 deletions archlinuxcn/python-defcon-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/defcon
59 changes: 59 additions & 0 deletions archlinuxcn/python-fontmake-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Maintainer: Caleb Maclennan <[email protected]>
# Maintainer: taotieren <[email protected]>

pkgname=python-fontmake-git
pkgver=3.5.1.r0.gb55aabd
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=(git
python-{build,installer}
python-setuptools-scm
python-wheel)
optdepends=(python-mutatormath
python-skia-pathops)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
cd "$pkgname"
git describe --long --tags --abbrev=7 HEAD |
sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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

check() {
cd "$pkgname"
PYTHONPATH=Lib pytest tests
}

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

13 changes: 13 additions & 0 deletions archlinuxcn/python-fontmake-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: googlefonts/fontmake
Loading

0 comments on commit 4839d6d

Please sign in to comment.