mirror of
https://github.com/archlinux/aur.git
synced 2026-02-13 20:13:31 +01:00
new package
This commit is contained in:
commit
930a39c228
2 changed files with 54 additions and 0 deletions
18
.SRCINFO
Normal file
18
.SRCINFO
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
pkgbase = netron-cli
|
||||
pkgdesc = Visualizer for neural network, deep learning, and machine learning models (CLI only)
|
||||
pkgver = 5.8.6
|
||||
pkgrel = 1
|
||||
url = https://netron.app/
|
||||
arch = any
|
||||
license = MIT
|
||||
makedepends = python-setuptools
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-wheel
|
||||
depends = python
|
||||
optdepends = python-onnx: serializing ONNX models
|
||||
optdepends = python-pytorch: serializing PyTorch models
|
||||
source = https://github.com/lutzroeder/netron/archive/v5.8.6/netron-5.8.6.tar.gz
|
||||
sha256sums = 51abf2f70e47141016ed01c27eb0abdd7a26f3bae2a1f7b82cab23ae54d467d2
|
||||
|
||||
pkgname = netron-cli
|
||||
36
PKGBUILD
Normal file
36
PKGBUILD
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
|
||||
|
||||
pkgname=netron-cli
|
||||
pkgver=5.8.6
|
||||
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=('51abf2f70e47141016ed01c27eb0abdd7a26f3bae2a1f7b82cab23ae54d467d2')
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue