mirror of
https://github.com/archlinux/aur.git
synced 2026-02-13 11:53:59 +01:00
netron-cli: fix build and update
Upstream moved from Makefile to npm scripts [1]. Here I switch to lower
level commands, which are copied from Makefile, to avoid npm dependency.
[1] 63d727e5d3
This commit is contained in:
parent
14618ae8ea
commit
b808e0b116
2 changed files with 7 additions and 14 deletions
6
.SRCINFO
6
.SRCINFO
|
|
@ -1,6 +1,6 @@
|
|||
pkgbase = netron-cli
|
||||
pkgdesc = Visualizer for neural network, deep learning, and machine learning models (CLI only)
|
||||
pkgver = 6.6.2
|
||||
pkgver = 6.6.8
|
||||
pkgrel = 1
|
||||
url = https://netron.app/
|
||||
arch = any
|
||||
|
|
@ -12,7 +12,7 @@ pkgbase = netron-cli
|
|||
depends = python
|
||||
optdepends = python-onnx: serializing ONNX models
|
||||
optdepends = python-pytorch: serializing PyTorch models
|
||||
source = https://github.com/lutzroeder/netron/archive/v6.6.2/netron-6.6.2.tar.gz
|
||||
sha256sums = d17e4369e0a84fa321e4dcfc09d35aaa1185a55184e5a0b1ca566ee919798ee9
|
||||
source = https://github.com/lutzroeder/netron/archive/v6.6.8/netron-6.6.8.tar.gz
|
||||
sha256sums = 18800221e93c060c64a923fcdaac1c347510cc2ec3e29b3ee513e6941bf06ff1
|
||||
|
||||
pkgname = netron-cli
|
||||
|
|
|
|||
15
PKGBUILD
15
PKGBUILD
|
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
|
||||
|
||||
pkgname=netron-cli
|
||||
pkgver=6.6.2
|
||||
pkgver=6.6.8
|
||||
pkgrel=1
|
||||
pkgdesc='Visualizer for neural network, deep learning, and machine learning models (CLI only)'
|
||||
url='https://netron.app/'
|
||||
|
|
@ -14,19 +14,12 @@ optdepends=(
|
|||
'python-pytorch: serializing PyTorch models'
|
||||
)
|
||||
source=(https://github.com/lutzroeder/netron/archive/v$pkgver/netron-$pkgver.tar.gz)
|
||||
sha256sums=('d17e4369e0a84fa321e4dcfc09d35aaa1185a55184e5a0b1ca566ee919798ee9')
|
||||
|
||||
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
|
||||
}
|
||||
sha256sums=('18800221e93c060c64a923fcdaac1c347510cc2ec3e29b3ee513e6941bf06ff1')
|
||||
|
||||
build() {
|
||||
cd netron-$pkgver
|
||||
make build_python
|
||||
python package.py build version
|
||||
python -m build --wheel --no-isolation --outdir dist/pypi dist/pypi
|
||||
}
|
||||
|
||||
package() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue