python-pip/PKGBUILD

30 lines
931 B
Bash
Raw Normal View History

2024-10-15 19:59:36 +08:00
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=python-pip
2024-11-03 02:55:42 +08:00
pkgver=24.3.1
2024-10-15 19:59:36 +08:00
pkgrel=1
pkgdesc="The PyPA recommended tool for installing Python packages"
arch=('x86_64')
url="https://pip.pypa.io/"
license=('MIT')
depends=('python' 'python-wheel')
makedepends=('python-build' 'python-installer' 'python-setuptools')
source=(https://github.com/pypa/pip/archive/${pkgver}/${pkgname#*-}-${pkgver}.tar.gz)
2024-11-03 02:55:42 +08:00
sha256sums=(1349240eff5fd44f4b9d834d503d87505a6cd0a8ab022f3f1665181d6a719a73)
2024-10-15 19:59:36 +08:00
build() {
2024-11-03 02:55:42 +08:00
cd ${pkgname#*-}-${pkgver}
2024-10-15 19:59:36 +08:00
2024-11-03 02:55:42 +08:00
python3 -m build --wheel --no-isolation
2024-10-15 19:59:36 +08:00
}
package() {
2024-11-03 02:55:42 +08:00
cd ${pkgname#*-}-${pkgver}
2024-10-15 19:59:36 +08:00
2024-11-03 02:55:42 +08:00
python3 -m installer -d ${pkgdir} dist/*.whl
2024-10-15 19:59:36 +08:00
}