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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:24:25 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:24:25
  Author: felixonmars
Revision: 1058218

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

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

Copied: python-py-cpuinfo/repos/community-staging-any/PKGBUILD (from rev 1058216, python-py-cpuinfo/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:24:25 UTC (rev 1058218)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-py-cpuinfo
+pkgver=8.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=('a882516a062815782ebc2ad1edb8813ef566877444a6577d6a752b6e0bfce832010181ae20633d5338bdda3399c50fb670c650983b7ffa3064ff76c5cfb0f8d8')
+
+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