summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25cc3fcb788cbee6ee508e90b4e35d0b1e83713b (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
# Maintainer: Martin Chang <marty188586@gmail.com>

pkgname=tt-burnin-git
pkgver=0.1.1
pkgrel=1
pkgdesc="Tenstorrent Burnin (TT-Burnin) is a command line utility to run a high power consumption workload on TT devices."
arch=('any')
url='https://github.com/tenstorrent/tt-burnin'
license=('Apache')
makedepends=(python-build python-installer python-wheel)
depends=(python-luwen python-tomli python-tt-tools-common)
provides=("tt-burnin")
source=("tt-burnin::git+https://github.com/tenstorrent/tt-burnin.git")
sha256sums=('SKIP')

pkgver() {
  cd tt-burnin
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd tt-burnin
    python -m build --wheel --no-isolation
}

package() {
    cd tt-burnin
    python -m installer --destdir="$pkgdir" dist/*.whl
}