#!/bin/mkpkg # description: A PEP 517 build backend for packages using Flit # url: https://pypi.org/project/flit_core/ name=py-flit_core _name=flit_core version=3.12.0 release=1 depends=(python3) makedeps=() source=(https://github.com/pypa/flit/archive/refs/tags/$version.tar.gz) sha256sums=( "c157ff92c01f4bb169182722ff76aadac113926b729215e91909021aa56e2ea3" ) build() { cd flit-$version/flit_core # Bootstrap: run flit_core from its own source tree — no pre-installed # flit_core needed. PYTHONPATH=. makes the local flit_core/ importable. PYTHONPATH=. /usr/bin/python3 -m flit_core.wheel _pyver=$(/usr/bin/python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")') _sitedir="$PKG/usr/lib/python${_pyver}/site-packages" install -dm755 "$_sitedir" # Bootstrap install: zipfile unpack — py-installer not available yet /usr/bin/python3 -c "import zipfile,glob; zipfile.ZipFile(glob.glob('dist/*.whl')[0]).extractall('$_sitedir')" /usr/bin/python3 -OO -m compileall -b -q "$_sitedir" find "$_sitedir" -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true } signify() { untrusted comment: public key RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 } # vim: filetype=sh