summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cee24245dc9bfbb9c9bdae25dfce3c0840cf3c5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: hexchain <i at hexchain dot org>

pkgname=python-pyperformance
pkgver=1.0.4
pkgrel=1
pkgdesc='Python Performance Benchmark Suite'
license=('MIT')
arch=('any')
url="https://github.com/python/pyperformance"
depends=('python-pyperf' 'python-toml' 'python-packaging')
makedepends=(
	'python-setuptools'
	'python-build'
	'python-installer'
	'python-wheel'
	'python-sphinx')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/p/pyperformance/pyperformance-$pkgver.tar.gz")
sha256sums=('759645cad9492be36301a7d2abeae564ef66e93539812a55e576839c81df80fa')

build() {
	cd "pyperformance-$pkgver"
	python -m build --wheel --no-isolation
	cd doc
	make man
}

package() {
	export PYTHONHASHSEED=0
	cd "pyperformance-$pkgver"
	python -m installer --destdir="$pkgdir/" dist/*.whl
	install -Dm644 doc/build/man/pythonperformancebenchmarksuite.1 \
		-t "$pkgdir/usr/share/man/man1/"
	install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}