[arch-commits] Commit in python-py-cpuinfo/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Jul 6 10:39:45 UTC 2020


    Date: Monday, July 6, 2020 @ 10:39:44
  Author: felixonmars
Revision: 657969

archrelease: copy trunk to community-testing-any

Added:
  python-py-cpuinfo/repos/community-testing-any/
  python-py-cpuinfo/repos/community-testing-any/PKGBUILD
    (from rev 657968, python-py-cpuinfo/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: python-py-cpuinfo/repos/community-testing-any/PKGBUILD (from rev 657968, python-py-cpuinfo/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-07-06 10:39:44 UTC (rev 657969)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-py-cpuinfo
+pkgver=7.0.0
+pkgrel=1
+arch=('any')
+pkgdesc='Get CPU info with pure Python 2 & 3'
+url='https://github.com/workhorsy/py-cpuinfo'
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/workhorsy/py-cpuinfo/archive/v$pkgver.tar.gz")
+sha512sums=('7046ee705d05c8b577db554b4bc82cc5a588f7263ce36194792eeaeba56a3466180d88187aad74792759f02ebcd32497e38354b3274f5453c1076ae23f9bedd0')
+
+prepare() {
+  cp -a py-cpuinfo-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/py-cpuinfo-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/py-cpuinfo-$pkgver
+  python setup.py pytest
+}
+
+package_python-py-cpuinfo() {
+  cd py-cpuinfo-$pkgver
+  python setup.py install --root "$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list