# 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.0 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=('9b791ed15b4e5dd768351043929dc6ee18eeab251a26fb2b0d712dec578101f1620a13d5914d44f2761ecb95e64bc47e6b07096126404ca70345268028524d43') b2sums=('693623292e498ec939ce931063bccc8079fc313a0a9f30d406a99a2084fcd84b5b5a17566602c53bb96090920bc2d0615f28b8f9c165022c2b0de62fa9355b21') build() { cd ${_base}-${pkgver} pypy3 setup.py build } package() { cd ${_base}-${pkgver} 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}" }