pkgname=python-numpy pkgver=2.2.1 pkgrel=1 pkgdesc="Scientific tools for Python" arch=('x86_64') url="https://www.numpy.org/" license=('custom') depends=('gcc') makedepends=( 'python-build' 'python-cython' 'python-installer' 'python-meson-python' 'python-pyproject-metadata') source=(https://github.com/numpy/numpy/releases/download/v${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) sha256sums=(45681fd7128c8ad1c379f0ca0776a8b0c6583d2f69889ddac01559dfe4390918) build() { cd ${pkgname#*-}-${pkgver} CFLAGS+=" -ffat-lto-objects" CXXFLAGS+=" -ffat-lto-objects" python3 -m build --wheel --no-isolation } package() { cd ${pkgname#*-}-${pkgver} python3 -m installer -d ${pkgdir} dist/*.whl }