new package

This commit is contained in:
Chih-Hsuan Yen 2022-06-11 10:56:39 +08:00
commit 930a39c228
2 changed files with 54 additions and 0 deletions

18
.SRCINFO Normal file
View 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
View 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
}