41 lines
1.0 KiB
Bash
41 lines
1.0 KiB
Bash
# Maintainer: atom2013 <atom.long@hotmail.com>
|
|
|
|
_realname=pip
|
|
pkgbase="python-${_realname}"
|
|
pkgname=("python-${_realname}")
|
|
pkgver=22.3.1
|
|
pkgrel=1
|
|
pkgdesc="The PyPA recommended tool for installing Python packages"
|
|
url="https://pip.pypa.io/"
|
|
arch=('any')
|
|
license=('spdx:MIT')
|
|
depends=(
|
|
'python'
|
|
)
|
|
makedepends=(
|
|
'python-build'
|
|
'python-installer'
|
|
'python-wheel'
|
|
'python-setuptools'
|
|
)
|
|
provides=("python3-${_realname}")
|
|
replaces=("python3-${_realname}")
|
|
conflicts=("python3-${_realname}")
|
|
source=(${_realname}-${pkgver}.tar.gz::https://github.com/pypa/${_realname}/archive/${pkgver}.tar.gz)
|
|
sha256sums=('8d9f7cd8ad0d6f0c70e71704fd3f0f6538d70930454f1f21bbc2f8e94f6964ee')
|
|
|
|
build() {
|
|
cd "${srcdir}/${_realname}-${pkgver}"
|
|
|
|
python -m build --wheel --skip-dependency-check --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_realname}-${pkgver}"
|
|
|
|
python -m installer --destdir="${pkgdir}" dist/*.whl
|
|
rm "${pkgdir}"/usr/lib/python*/site-packages/pip/_vendor/distlib/*.exe
|
|
|
|
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|