File PKGBUILD of Package python-fonttools-bootstrap
# Maintainer: Yukari Chiba <[email protected]> pkgname=python-fonttools _pyname=${pkgname#python-} pkgver=4.60.1 pkgrel=1 pkgdesc='A library to manipulate font files from Python' url="https://github.com/fonttools/$_pyname" license=(MIT) arch=(x86_64 aarch64 riscv64 loongarch64) depends=(python) makedepends=(cython python-build python-installer python-setuptools python-wheel) optdepends=('python-brotli: to compress/decompress WOFF 2.0 web fonts' 'python-fs: to read/write UFO source files' 'python-lxml: faster backend for XML files reading/writing' 'python-lz4: for graphite type tables in ttLib/tables' 'python-matplotlib: for visualizing DesignSpaceDocument and resulting VariationModel' 'python-pyqt5: for drawing glyphs with Qt’s QPainterPath' 'python-reportlab: to drawing glyphs as PNG images' 'python-scipy: for finding wrong contour/component order between different masters' 'python-sympy: for symbolic font statistics analysis' 'python-uharfbuzz: to use the Harfbuzz Repacker for packing GSUB/GPOS tables' 'python-unicodedata2: for displaying the Unicode character names when dumping the cmap table with ttx' 'python-zopfli: faster backend fom WOFF 1.0 web fonts compression') _archive="$_pyname-$pkgver" source=("$url/archive/$pkgver/$_archive.tar.gz") sha256sums=('520d2c993ffd386716441d19a1ca65020c54741ceb771c2d2a2557156c12010d') build() { cd "$_archive" python -m build -wn } package() { cd "$_archive" python -m installer -d "$pkgdir" dist/*.whl install -Dm0755 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE }