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

pkgname=python-luwen-git
pkgver=0.4.3
pkgrel=1
pkgdesc="Python package for the tenstorrent system interface library"
arch=('x86_64')
url='https://github.com/tenstorrent/luwen'
license=('Apache')
makedepends=(gcc rust make python python-pip maturin python-installer)
depends=()
provides=("python-luwen")
source=("luwen::git+https://github.com/tenstorrent/luwen.git")
sha256sums=('SKIP')

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

build() {
    cd luwen
    mkdir -p pybuild
    DEST_DIR="$PWD/pybuild" make whl
}

package_python-luwen-git() {
    cd luwen
    python -m installer --destdir="$pkgdir" pybuild/*linux_x86_64.whl
}