#!/bin/bash # Maintainer: PumpkinCheshire pkgname=python-viztracer _name=viztracer pkgver=0.14.1 pkgrel=1 pkgdesc='VizTracer is a low-overhead logging/debugging/profiling tool that can trace and visualize your python code execution.' arch=('x86_64') url="https://github.com/gaogaotiantian/$_name" license=('Apache') depends=('python') makedepends=('python-setuptools') optdepends=( 'python-rich: Full function support' 'python-orjson: Full function support' 'chromium: browser to open html results' ) source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") b2sums=('91067dafb89cbcae04bca971a57b3a5f0cac5cfee12a89319f474f5c6bf375bb47b7c2933ffca1cbcad310a78b533c71fc485e740f3bc6a61ccc14b7981e6519') build() { cd "$_name-$pkgver" export PYTHONHASHSEED=0 python setup.py build } package() { cd "$_name-$pkgver" python setup.py install --root="$pkgdir" --optimize=1 --skip-build install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" # install -Dm644 $scrdir/README* "${pkgdir}/usr/share/doc/${pkgname}/README" }