[arch-commits] Commit in python-py-cpuinfo/repos/community-staging-any (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Oct 31 18:10:28 UTC 2019
Date: Thursday, October 31, 2019 @ 18:10:27
Author: felixonmars
Revision: 521577
archrelease: copy trunk to community-staging-any
Added:
python-py-cpuinfo/repos/community-staging-any/PKGBUILD
(from rev 521575, python-py-cpuinfo/trunk/PKGBUILD)
Deleted:
python-py-cpuinfo/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 104 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 52 insertions(+), 52 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-31 18:10:23 UTC (rev 521576)
+++ PKGBUILD 2019-10-31 18:10:27 UTC (rev 521577)
@@ -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=3
-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-staging-any/PKGBUILD (from rev 521575, python-py-cpuinfo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-31 18:10:27 UTC (rev 521577)
@@ -0,0 +1,52 @@
+# 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}
+}
More information about the arch-commits
mailing list