blob: 0cd77e4e2c4b67b926b59d28af5f3b5fb44e5d4a (
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
|
# Maintainer: Gregory Danielson III <gregdan3@protonmail.com>
_npmname=markmap-cli
pkgname=nodejs-markmap-cli # All lowercase
pkgver=0.17.0
pkgrel=1
pkgdesc="Create markmaps (mindmaps from markdown) from CLI"
arch=(any)
url="https://markmap.js.org/"
license=(MIT)
depends=('nodejs' 'npm')
optdepends=()
source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
sha1sums=('80391afada305ec81f97562389d9a587f13bbb6d')
package() {
cd $srcdir
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p $_npmdir
cd $_npmdir
npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver
chown -R root:root "$pkgdir"
}
# vim:set ts=2 sw=2 et:
|