python-setuptools/PKGBUILD

31 lines
1.0 KiB
Bash
Raw Permalink 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-11-03 02:49:05 +08:00
pkgver=75.3.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-11-03 02:49:05 +08:00
sha256sums=(625fb6087d038db909775d787d3ac34eb5b1082b7091f715e1861934408758a4)
2024-10-15 19:58:03 +08:00
build() {
2024-11-03 02:49:05 +08:00
cd ${pkgname#*-}-${pkgver}
2024-10-15 19:58:03 +08:00
2024-11-03 02:49:05 +08:00
python3 setup.py egg_info
python3 -m build --wheel --skip-dependency-check --no-isolation
2024-10-15 19:58:03 +08:00
}
package() {
2024-11-03 02:49:05 +08:00
cd ${pkgname#*-}-${pkgver}
2024-10-15 19:58:03 +08:00
2024-11-03 02:49:05 +08:00
python3 -m installer --destdir=${pkgdir} dist/*.whl
2024-10-15 19:58:03 +08:00
}