python-setuptools/PKGBUILD

31 lines
1021 B
Bash
Raw Normal View History

2024-10-15 19:58:03 +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-setuptools
2024-10-15 19:59:08 +08:00
pkgver=75.1.0
2024-10-15 19:58:03 +08:00
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' 'python-installer' 'python-build')
source=(https://github.com/pypa/setuptools/archive/${pkgver}/${pkgname#*-}-${pkgver}.tar.gz)
2024-10-15 19:59:08 +08:00
sha256sums=(d59a21b17a275fb872a9c3dae73963160ae079f1049ed956880cd7c09b120538)
2024-10-15 19:58:03 +08:00
build() {
cd ${pkgname#*-}-${pkgver}
python3 setup.py egg_info
python3 -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd ${pkgname#*-}-${pkgver}
python3 -m installer --destdir=${pkgdir} dist/*.whl
}