blob: 40a2dc10e82321abae42db72b7c248b76c228263 (
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
|
# Maintainer: Yufan You <ouuansteve at gmail>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Daniel Nagy <danielnagy at gmx de>
# Contributor: Jeremy Ashkenas
# Contributor: jashkenas <jashkenas@gmail.com>
_npmname=docco
pkgname=nodejs-docco
pkgver=0.9.1
pkgrel=1
pkgdesc="Literate Programming can be Quick and Dirty."
arch=(any)
url="https://github.com/jashkenas/docco"
license=(MIT)
depends=('nodejs')
makedepends=('npm')
source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
sha256sums=('d4a976409c97f6d23519b0d38af6aa99e4c240f02e4b0a52ad030b0037693153')
package() {
cd "$srcdir"
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p "$_npmdir"
cd "$_npmdir"
npm install -g --prefix "$pkgdir/usr" "$srcdir/$_npmname-$pkgver.tgz"
install -Dm644 "$_npmdir/$_npmname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
chown -R root:root "${pkgdir}"
}
|