[arch-commits] Commit in python-py-cpuinfo/repos/community-any (PKGBUILD PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Fri May 8 18:26:44 UTC 2020


    Date: Friday, May 8, 2020 @ 18:26:43
  Author: jelle
Revision: 625735

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-08 18:26:33 UTC (rev 625734)
+++ PKGBUILD	2020-05-08 18:26:43 UTC (rev 625735)
@@ -1,52 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-py-cpuinfo
-pkgname=('python-py-cpuinfo' 'python2-py-cpuinfo')
-pkgver=5.0.0
-pkgrel=4
-arch=('any')
-pkgdesc='Get CPU info with pure Python 2 & 3'
-url='https://github.com/workhorsy/py-cpuinfo'
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/workhorsy/py-cpuinfo/archive/v$pkgver.tar.gz")
-sha512sums=('186bae1745c927b613ac852819e046ef43b9b9322e4455d9fb0ce94d4ab7d3239a25d7bb01347f3a5a9dc80a0cc047feeb3af97ab85e5e995ff19a5f8b7a8129')
-
-prepare() {
-  cp -a py-cpuinfo-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/py-cpuinfo-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/py-cpuinfo-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir"/py-cpuinfo-$pkgver
-  python setup.py pytest
-
-  cd "$srcdir"/py-cpuinfo-$pkgver-py2
-  python2 setup.py pytest
-}
-
-package_python-py-cpuinfo() {
-  depends=('python')
-
-  cd py-cpuinfo-$pkgver
-  python setup.py install --root "$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-py-cpuinfo() {
-  depends=('python2')
-
-  cd py-cpuinfo-$pkgver-py2
-  python2 setup.py install --root "$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
-  mv "$pkgdir"/usr/bin/cpuinfo{,2}
-}

Copied: python-py-cpuinfo/repos/community-any/PKGBUILD (from rev 625734, python-py-cpuinfo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-08 18:26:43 UTC (rev 625735)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-py-cpuinfo
+pkgver=5.0.0
+pkgrel=5
+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=('186bae1745c927b613ac852819e046ef43b9b9322e4455d9fb0ce94d4ab7d3239a25d7bb01347f3a5a9dc80a0cc047feeb3af97ab85e5e995ff19a5f8b7a8129')
+
+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