new: lfs-12.2-systemd/oython-setuptools-72.2.0

This commit is contained in:
Yingjie Wang 2025-01-28 02:30:28 -05:00
parent 2007028a5f
commit af3673d188

View File

@ -0,0 +1,27 @@
pkgname=python-setuptools
_name=${pkgname#python-}
pkgver=72.2.0
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
homepage="https://pypi.org/project/setuptools/"
license=('MIT')
sources=("${_name}-${pkgver}.tar.gz")
urls=("https://pypi.org/packages/source/s/${_name}/${sources[0]}")
md5sums=("2e0ffd0f6fc632a11442b79d9b1c68bd")
src_prepare() {
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
}
src_build() {
python3 setup.py build
}
src_check() {
:
}
src_install() {
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}