diff options
author | Caleb Maclennan | 2023-05-04 17:31:26 +0300 |
---|---|---|
committer | Caleb Maclennan | 2023-05-04 17:31:26 +0300 |
commit | 110b19101f219906bcf891f4934ad32ad0beaca6 (patch) | |
tree | 5593398c190df7d90e99b7858ec076177e9c39e2 | |
parent | ae96156b52ad23e7f65c3b72abdddc578370a8f1 (diff) | |
download | aur-110b19101f219906bcf891f4934ad32ad0beaca6.tar.gz |
upgpkg: python-opentype-sanitizer 9.0.0-2
Rebuild for Python 3.11, normalize PEP517 build tooling
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 17 insertions, 5 deletions
@@ -1,12 +1,17 @@ pkgbase = python-opentype-sanitizer pkgdesc = Python wheels for the OpenType Sanitizer pkgver = 9.0.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/googlefonts/ots-python arch = any license = GPL3 checkdepends = python-pytest checkdepends = woff2 + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = meson + makedepends = ninja makedepends = python-setuptools-scm depends = ots depends = python @@ -5,7 +5,7 @@ _project=ots-python _pyname=opentype-sanitizer pkgname=python-$_pyname pkgver=9.0.0 -pkgrel=1 +pkgrel=2 pkgdesc='Python wheels for the OpenType Sanitizer' arch=(any) url="https://github.com/googlefonts/$_project" @@ -14,7 +14,10 @@ depends=(ots python) checkdepends=(python-pytest woff2) -makedepends=(python-setuptools-scm) +makedepends=(python-{build,installer,wheel} + meson + ninja + python-setuptools-scm) _archive="$_pyname-$pkgver" source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz" system-ots-sanitize.patch) @@ -24,11 +27,15 @@ sha256sums=('4b89660e166a1fe057ab1c6b63038fc48ee73e768e80e1bf982abaf7b16fa064' prepare () { cd "$_archive" patch -p0 < "../system-ots-sanitize.patch" + # python -m build finds project local helper script not distro tooling + sed -i -e 's/build.py/buildots.py/g' setup.py + mv build{,ots}.py + sed -i -e '/ninja/d' pyproject.toml } build() { cd "$_archive" - python setup.py build + python -m build -wn } check() { @@ -38,5 +45,5 @@ check() { package() { cd "$_archive" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer -d "$pkgdir" dist/*.whl } |