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

Felix Yan felixonmars at archlinux.org
Thu Jun 11 18:44:46 UTC 2020


    Date: Thursday, June 11, 2020 @ 18:44:45
  Author: felixonmars
Revision: 642109

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 642108, python-py-cpuinfo/trunk/PKGBUILD)

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

Copied: python-py-cpuinfo/repos/community-testing-any/PKGBUILD (from rev 642108, python-py-cpuinfo/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-06-11 18:44:45 UTC (rev 642109)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-py-cpuinfo
+pkgver=6.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=('b03f1abd30bf17b8ac96ff36da751afeb49abc999f6a747c6a851b1dd5a302bdbcf0f8a5247acba4138dbc31de0d85cbdd41606de2a51cd0e2a0ebeb9d5ccfff')
+
+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