pkgname=python-packaging _name=${pkgname#python-} pkgver=25.0 pkgdesc="Core utilities for Python packages" homepage="https://pypi.org/project/packaging/" license=('Apache-2.0') sources=("${_name}-${pkgver}.tar.gz") urls=("https://files.pythonhosted.org/packages/source/p/${_name}/${sources[0]}") md5sums=("ab0ef21ddebe09d1803575120d3f99f8") src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 } src_build() { pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD } src_install() { pip3 install --no-deps --no-warn-script-location --no-index --no-cache-dir --no-user --force-reinstall --root ${pkgdir} --find-links dist ${_name} }