# Maintainer: Carlos Aznarán <caznaranl@uni.pe> # Contributor: Michel Zou <xantares09@hotmail.com> _base=pythran pkgname=pypy3-${_base} pkgdesc="Ahead of Time compiler for numeric kernels" pkgver=0.16.1 pkgrel=1 arch=(any) url="https://github.com/serge-sans-paille/${_base}" license=(BSD-3-Clause) depends=(pypy3-ply pypy3-numpy pypy3-beniget xsimd boost) makedepends=(pypy3-setuptools) source=(${_base}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz) sha512sums=('7a89546b52bdae9bdaeba42768ac822c584a3714b8f4e32417d793454dc0b5492342dfd393d92f8ecee12c854bc39e418f5860aadd00d328afef7b17ebddec99') build() { cd ${_base}-${pkgver} pypy3 setup.py build } package() { cd ${_base}-${pkgver} PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" pypy3 setup.py install --prefix=/opt/pypy3 --root="$pkgdir" --optimize=1 --skip-build rm -r "$pkgdir"/opt/pypy3/lib/py*/site-packages/pythran/{boost,xsimd} # Remove bundled boost and xsimd install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname }