aboutsummaryrefslogtreecommitdiffstats
path: root/community/ipynb2html/APKBUILD
blob: a1282efda9aef7c35236a99500a92f1438d76dd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ipynb2html
pkgver=0.2.0
pkgrel=0
pkgdesc="Convert Jupyter Notebook to static HTML"
url="https://github.com/jirutka/ipynb2html"
arch="noarch !mips !mips64"
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="3238a1375d37bea20405d0f1ade722f39cce6fa975d57015edab2a085e63822ddf1dc5bebda4d473bd5b2cab980138ea12d3570c2c9045672d3d6534d4da7f06  ipynb2html-v0.2.0-src.tar.gz"