summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 453713d16703d507fec206ac5f6c316c7abb8524 (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
# Maintainer: Yufan You <ouuansteve at gmail>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Daniel Nagy <danielnagy at gmx de>
# Contributor: Nodejitsu Inc. <info@nodejitsu.com>
# Contributor: indexzero <charlie.robbins@gmail.com>
# Contributor: mmalecki <me@mmalecki.com>
# Contributor: chjj <chjjeffrey@gmail.com>
# Contributor: V1 <info@3rd-Eden.com>

_npmname=winston
pkgname=nodejs-winston
pkgver=3.3.3
pkgrel=2
pkgdesc="A logger for just about everything."
arch=(any)
url="https://github.com/flatiron/winston"
license=("MIT")
depends=('nodejs')
makedepends=('npm')
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
sha256sums=('b0f210ced402354740f66f294406d652ccc6db9e21a0a7f72f2922270a742274')

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}"
}