aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ipynb2html/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ipynb2html/APKBUILD')
-rw-r--r--testing/ipynb2html/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/ipynb2html/APKBUILD b/testing/ipynb2html/APKBUILD
new file mode 100644
index 00000000000..059c3dd9627
--- /dev/null
+++ b/testing/ipynb2html/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=ipynb2html
+pkgver=0.1.0_beta8
+_pkgver=${pkgver/_beta/-beta.}
+pkgrel=0
+pkgdesc="Convert Jupyter Notebook to static HTML"
+url="https://github.com/jirutka/ipynb2html"
+arch="noarch"
+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="5c54e55395284fcab3ca86626637cea902fd93e8ca040307e9cb5e1c9ae3e5a1de520ec43bff1a7583b6ee0430358c154d43b4d16844bba735db75c70eac10d2 ipynb2html-v0.1.0-beta.8-src.tar.gz"