[arch-commits] Commit in python-py-cpuinfo/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 15:45:19 UTC 2020
Date: Monday, November 9, 2020 @ 15:45:19
Author: felixonmars
Revision: 747122
archrelease: copy trunk to community-staging-any
Added:
python-py-cpuinfo/repos/community-staging-any/
python-py-cpuinfo/repos/community-staging-any/PKGBUILD
(from rev 747121, python-py-cpuinfo/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-py-cpuinfo/repos/community-staging-any/PKGBUILD (from rev 747121, python-py-cpuinfo/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 15:45:19 UTC (rev 747122)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-py-cpuinfo
+pkgver=7.0.0
+pkgrel=2
+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