pkgname=python3-psutil pkgver=6.1.0 pkgrel=1 pkgdesc='Cross-platform process and system utilities module for Python' arch=('x86_64') url='https://github.com/giampaolo/psutil' license=('custom: BSD') depends=('python3') makedepends=('python3-build' 'python3-installer' 'python3-setuptools' 'python3-wheel') source=("https://files.pythonhosted.org/packages/source/p/psutil/psutil-${pkgver}.tar.gz") sha256sums=('353815f59a7f64cdaca1c0307ee13558a0512f6db064e92fe833784f08539c7a') build() { cd psutil-${pkgver} python3 -m build -nw } package() { cd psutil-${pkgver} python3 -m installer --destdir=${pkgdir} dist/*.whl install -D -m 644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }