summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorrepo2020-01-13 23:34:45 +0000
committerrepo2020-01-13 23:34:45 +0000
commit873f419c5832032ca2016743969cc23abba8b3b9 (patch)
treea51b09d483a3788fe4ce2d6fc238a27ff429c8c4
downloadaur-873f419c5832032ca2016743969cc23abba8b3b9.tar.gz
Update from repo
See changes at https://gitlab.com/hexchain/repo/commit/b4176d649598c3d93db9ffa24532c0929c401d43
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD31
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..30639ba6155
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python-pyperformance
+ pkgdesc = Python Performance Benchmark Suite
+ pkgver = 1.0.0
+ pkgrel = 2.1
+ url = https://github.com/python/pyperformance
+ arch = any
+ license = MIT
+ checkdepends = python-tox
+ makedepends = python-pip
+ depends = python-perf
+ depends = python-six
+ source = https://pypi.org/packages/source/p/pyperformance/pyperformance-1.0.0.tar.gz
+ sha256sums = 3aaaf52c6333e5d9275ec44040cda527b441318fe3866911339a59858fca3d90
+
+pkgname = python-pyperformance
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..76455cad7e1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: hexchain <i at hexchain dot org>
+
+_pypiname=pyperformance
+pkgname=python-$_pypiname
+pkgver=1.0.0
+pkgrel=2.1
+pkgdesc='Python Performance Benchmark Suite'
+url="https://github.com/python/pyperformance"
+depends=('python-perf' 'python-six')
+makedepends=('python-pip')
+checkdepends=('python-tox')
+license=('MIT')
+arch=('any')
+source=("https://pypi.org/packages/source/${_pypiname:0:1}/$_pypiname/$_pypiname-$pkgver.tar.gz")
+sha256sums=('3aaaf52c6333e5d9275ec44040cda527b441318fe3866911339a59858fca3d90')
+
+build() {
+ cd "$srcdir/$_pypiname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir/$_pypiname-$pkgver"
+ tox -s true
+}
+
+package() {
+ cd "$srcdir/$_pypiname-$pkgver"
+ python setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1 --skip-build
+ install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}