# Maintainer: Carlos Aznarán # Contributor: dustball # Adapted from the package python-pip with the following original contributors: # Contributor: David Runge # Contributor: Felix Yan # Contributor: Dan McGee # Contributor: Eli Schwartz # Contributor: Sebastien Binet _base=pip pkgname=pypy3-${_base} pkgver=23.1.1 pkgrel=1 pkgdesc="The PyPA recommended tool for installing Python packages" url="https://pip.pypa.io" arch=(any) license=(MIT) depends=(pypy3 pypy3-setuptools) source=(https://github.com/pypa/${_base}/archive/${pkgver}/${_base}-${pkgver}.tar.gz) sha512sums=('9cc8d414625a59d98e485251fdc3707edd30a94b597954e9d03b42076f3adaca6f7e3f1ef80e37e7fb12b51941ac359114b23aae4722588bb7f4b44813397db5') b2sums=('4b566507189bed38de572d3641f4f1cdf795a928462fbdb43f6d03f98a5efdce31c3c6ffb8ac0761eb8dd7667f02f195241aacbebc06b26f8e4d22d1ca4a8fb9') 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}" mkdir -p "${pkgdir}/usr/bin" mv "${pkgdir}/opt/pypy3/bin/pip" "${pkgdir}/usr/bin/pip-pypy3" install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}" }