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 6, 2023
1 parent 2e52e3a commit a2cc55b
Show file tree
Hide file tree
Showing 38 changed files with 1,175 additions and 0 deletions.
45 changes: 45 additions & 0 deletions archlinuxcn/python-booleanoperations-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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"
PYTHONPATH="$PWD/build/lib" pytest -v
}

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

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

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

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
update_on:
- source: github
github: typemytype/booleanOperations
48 changes: 48 additions & 0 deletions archlinuxcn/python-cffsubr-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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"
PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-${python_version}" pytest -v
}

package() {
cd "$pkgname"
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-cffsubr-git/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-setuptools-git-ls-files

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
update_on:
- source: github
github: adobe-type-tools/cffsubr
44 changes: 44 additions & 0 deletions archlinuxcn/python-compreffor-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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.linux-$CARCH-cpython-${python_version}" pytest -v
}

package() {
cd "$pkgname"
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-compreffor-git/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-setuptools-git-ls-files

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
update_on:
- source: github
github: googlefonts/compreffor
46 changes: 46 additions & 0 deletions archlinuxcn/python-cu2qu-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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/build/lib.linux-$CARCH-cpython-${python_version}" pytest -v
}

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

16 changes: 16 additions & 0 deletions archlinuxcn/python-cu2qu-git/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

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
update_on:
- source: github
github: googlefonts/cu2qu
47 changes: 47 additions & 0 deletions archlinuxcn/python-defcon-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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 -v
}

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

15 changes: 15 additions & 0 deletions archlinuxcn/python-defcon-git/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

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_on:
- source: github
github: robotools/defcon
60 changes: 60 additions & 0 deletions archlinuxcn/python-fontmake-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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="$PWD/build/lib" pytest -v
}

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

Loading

0 comments on commit a2cc55b

Please sign in to comment.