#!/bin/mkpkg # description: Fast and user friendly build system # url: https://mesonbuild.com/ name=meson _name=meson version=1.12.1 release=1 depends=(python3 samurai) makedeps=(python3 py-installer py-setuptools py-build py-wheel py-pyproject_hooks) source=(https://github.com/mesonbuild/meson/releases/download/$version/$_name-$version.tar.gz) sha256sums=( "ab0a6ca09f8ef70c564c8241fb5a23957886a0b53fb58412b5e07eaf07dba743" ) build() { cd $_name-$version /usr/bin/python3 -m build --no-isolation --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" /usr/bin/python3 -m installer --destdir "$PKG" --prefix /usr dist/*.whl /usr/bin/python3 -OO -m compileall -b -q "$_sitedir" find "$_sitedir" -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true find "$_sitedir" -name "*.exe" -delete } signify() { untrusted comment: public key RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 } # vim: filetype=sh