Python/python-setuptools/PKGBUILD

30 lines
1003 B
Bash

# 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-setuptools
pkgver=72.2.0
pkgrel=1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=('x86_64')
url="https://pypi.org/project/setuptools/"
license=('PSF')
depends=('python')
makedepends=('python-flit-core' 'python-wheel')
source=(https://github.com/pypa/setuptools/archive/${pkgver}/${pkgname#*-}-${pkgver}.tar.gz)
sha256sums=(80aacbf633704e9c8bfa1d99fa5dd4dc59573efcf9e4042c13d3bcef91ac2ef9)
build() {
cd ${pkgname#*-}-${pkgver}
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
}
package() {
cd ${pkgname#*-}-${pkgver}
pip3 install --ignore-installed --root ${pkgdir} --no-index --find-links=dist setuptools
}