# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-py-cpuinfo _pkgname=py-cpuinfo pkgver=5.0.0 pkgrel=4 pkgdesc="A module for getting CPU info" url="https://github.com/workhorsy/py3-cpuinfo" arch="noarch" license="MIT" depends="python3" makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz add-s390x.patch" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-cpuinfo" # Backwards compatibility provides="py-cpuinfo=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="d3a22ffdc4d1668a58330016e3297e57c07f6380e544497b1ad9dfcf0410b000f69418bf1cb9a434a2ffdbc8f17be89a25d33c65817913a823c6e181df6b760e py-cpuinfo-5.0.0.tar.gz 98b361419e54b0386dc026575d5be18494c2c22f0a102045bd84af18e0691427327421721e0d747b823cb583f02a74606195bf2e4ab990ffaedd39fd0ca0118c add-s390x.patch"