# Maintainer: Filipe Bertelli # Contributor: J. C. Hammons # Contributor: Amr Okasha # Contributor: Dimitris Kiziridis pkgname=netron-bin pkgver=6.7.5 pkgrel=1 pkgdesc="Visualizer for neural network, deep learning and machine learning models" arch=('x86_64') url='https://www.lutzroeder.com/ai' license=('MIT') provides=('netron') depends=('gtk3' 'nss' 'dbus-glib' 'libdbusmenu-glib' 'libindicator-gtk2' 'libdbusmenu-gtk2' 'alsa-lib') makedepends=('gendesk') options=('!strip') noextract=("${pkgname}-${pkgver}.AppImage") source=("${pkgname}-${pkgver}.AppImage::https://github.com/lutzroeder/netron/releases/download/v${pkgver}/Netron-${pkgver}.AppImage" 'LICENSE::https://github.com/lutzroeder/netron/raw/main/LICENSE') sha256sums=('de5252b5a7137c304fa057eeb00d3fec5ff02e9a1242ff6f417e98c6199b06cb' '535cb2c7c8990f967c106e3035e4df8d3e070144af1163b86c8bb58b65fe5e88') package() { chmod 755 ./${pkgname}-${pkgver}.AppImage ./${pkgname}-${pkgver}.AppImage --appimage-extract install -Dm644 squashfs-root/usr/share/icons/hicolor/0x0/apps/netron.png "${pkgdir}/usr/share/pixmaps/netron.png" gendesk -f -n --pkgname "${pkgname%-bin}" \ --pkgdesc "$pkgdesc" \ --name "Netron" \ --comment "$pkgdesc" \ --exec "${pkgname%-bin}" \ --categories 'Development;Application;' \ --icon "${pkgname%-bin}" install -Dm644 "${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" install -d "${pkgdir}/usr/bin" install -d "${pkgdir}/opt" cp -avR squashfs-root/ "${pkgdir}/opt/${pkgname%-bin}" ln -s /opt/${pkgname%-bin}/AppRun "${pkgdir}/usr/bin/${pkgname%-bin}" find "${pkgdir}/opt/${pkgname%-bin}" -type d -exec chmod 755 {} + install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" }