summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b3230ef8d3d321fc82f9e953bcece6f6253a0e79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Maintainer: Dringsim <dringsim@qq.com>
pkgname=tslab
pkgver=1.0.21
pkgrel=1
pkgdesc="Interactive JavaScript and TypeScript programming with Jupyter"
arch=(any)
url="https://github.com/yunabe/tslab"
license=('Apache')
depends=('jupyterlab' 'nodejs')
optdepends=('typescript')
makedepends=('npm' 'patchelf')
source=(https://registry.npmjs.org/${pkgname}/-/${pkgname}-${pkgver}.tgz)
noextract=("${pkgname}-${pkgver}.tgz")
sha256sums=('5937851EA2F620C9C7E79585EF7F1A77BCF632E9AA3319EBE055B37A526CB692')
_npmdir="/usr/lib/node_modules/$pkgname"

package() {
  npm install -g --omit=dev --prefix="${pkgdir}/usr" --cache="${srcdir}/npm-cache" "${pkgname}-${pkgver}.tgz"
}