mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 18:55:29 +03:00
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=ipynb2html
|
|
pkgver=0.3.0
|
|
pkgrel=0
|
|
pkgdesc="Convert Jupyter Notebook to static HTML"
|
|
url="https://github.com/jirutka/ipynb2html"
|
|
# riscv64 missing nodejs
|
|
arch="noarch !mips !mips64 !riscv64"
|
|
license="MIT BSD-3-Clause"
|
|
depends="nodejs"
|
|
makedepends="yarn"
|
|
subpackages="$pkgname-dbg"
|
|
source="https://github.com/jirutka/$pkgname/releases/download/v$pkgver/ipynb2html-v$pkgver-src.tar.gz"
|
|
builddir="$srcdir/$pkgname-v$pkgver-src"
|
|
|
|
build() {
|
|
yarn build --force
|
|
yarn workspace ipynb2html-cli bundle
|
|
}
|
|
|
|
check() {
|
|
./packages/ipynb2html-cli/dist/ipynb2html --version
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"/packages/ipynb2html-cli/dist
|
|
|
|
install -D -m 755 ipynb2html "$pkgdir"/usr/bin/ipynb2html
|
|
}
|
|
|
|
dbg() {
|
|
pkgdesc="$pkgdesc (source map)"
|
|
depends="$pkgname=$pkgver-r$pkgrel"
|
|
|
|
cd "$builddir"/packages/ipynb2html-cli/dist
|
|
install -D -m 644 ipynb2html.map "$subpkgdir"/usr/bin/ipynb2html.map
|
|
}
|
|
|
|
sha512sums="16fa4c00e4aa836598e31ae139156b2d63c025d80c59d85ea8f91d61f4b4a6dcf5e7f6fe1f7f1c4d6182bfc60e64349b324cac4aff5df3ab3d81558b2f748419 ipynb2html-v0.3.0-src.tar.gz"
|