Christoph Reiter e8f4f9baa3 more CPEs
2024-03-26 09:46:25 +01:00

46 lines
1.1 KiB
Bash

# Maintainer: atom2013 <atom.long@hotmail.com>
_realname=pip
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=24.0
pkgrel=1
pkgdesc="The PyPA recommended tool for installing Python packages"
url="https://pip.pypa.io/"
msys2_repository_url="https://github.com/pypa/pip"
msys2_references=(
"pypi:pip"
"cpe: cpe:/a:pypa:pip"
)
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=('ad0dfe75fb28092a8cbe18523391695ceb0c0d65a5c9a969349fcb13b12b84c7')
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"
}