commit 8fe4317a45f49c3c3c6269eaf941a470e0d34b1e Author: xhaa123 Date: Tue Oct 15 19:59:36 2024 +0800 python-pip 24.0-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..c574c18 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# 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 +pkgname=python-pip +pkgver=24.0 +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) +sha256sums=(ad0dfe75fb28092a8cbe18523391695ceb0c0d65a5c9a969349fcb13b12b84c7) + +build() { + cd ${pkgname#*-}-${pkgver} + + python3 -m build --wheel --no-isolation +} + +package() { + cd ${pkgname#*-}-${pkgver} + + python3 -m installer -d ${pkgdir} dist/*.whl +}