blob: 2dbd7b446618d3792eda7e5af216a15464592653 (
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
36
|
# Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
pkgname=netron-cli
pkgver=6.3.8
pkgrel=1
pkgdesc='Visualizer for neural network, deep learning, and machine learning models (CLI only)'
url='https://netron.app/'
arch=(any)
license=(MIT)
depends=(python)
makedepends=(python-setuptools python-build python-installer python-wheel)
optdepends=(
'python-onnx: serializing ONNX models'
'python-pytorch: serializing PyTorch models'
)
source=(https://github.com/lutzroeder/netron/archive/v$pkgver/netron-$pkgver.tar.gz)
sha256sums=('eb2ec17d51fb33ce8bd53af093755cab00812c695f3736d655b6c7e457fbb990')
prepare() {
cd netron-$pkgver
# Use dependencies from Arch
sed -i '/python -m pip/d' Makefile
# We don't need node_modules...trick Makefile
mkdir node_modules
}
build() {
cd netron-$pkgver
make build_python
}
package() {
cd netron-$pkgver
python -m installer --destdir="$pkgdir" dist/pypi/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
|