summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8b8ff2999009ae814b21c85c9bca4a8b01072918 (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
# Author: Caolan McMahon
# Maintainer:
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Romain Beauxis (https://github.com/toots)
# Contributor: Alex Gorbatchev (https://github.com/alexgorbatchev)
# Contributor: Alex Wolfe (https://github.com/alexkwolfe)
# Contributor: Carl Fürstenberg (https://github.com/azatoth)
# Contributor: Gerad Suyderhoud (https://github.com/gerad)
# Contributor: Kadir Pekel (https://github.com/coffeemate)
# Contributor: Oleg Efimov (https://github.com/Sannis)
# Contributor: Orlando Vazquez (https://github.com/orlandov)
# Contributor: Ryan Dahl (https://github.com/ry)
# Contributor: Sam Stephenson (https://github.com/sstephenson)
# Contributor: Thomas Mayfield (https://github.com/thegreatape)
# Contributor: Elijah Insua <tmpvar@gmail.com> (http://tmpvar.com)
# Contributor: caolan <caolan@caolanmcmahon.com>
# Contributor: mreinstein <reinstein.mike@gmail.com>

_npmname=nodeunit
pkgname=nodejs-nodeunit # All lowercase
pkgver=0.11.3
pkgrel=1
pkgdesc="Easy unit testing for node.js and the browser."
arch=(any)
url="http://github.com/caolan/nodeunit"
license=(MIT)
depends=('nodejs' 'npm')
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
sha256sums=('d8634e532dc4c0ee9b03eb30e457b255977ad032cb14f379dd65189594af1516')

package() {
  cd $srcdir
  local _npmdir="$pkgdir/usr/lib/node_modules/"
  mkdir -p $_npmdir
  cd $_npmdir
  npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver
}
# vim:set ts=2 sw=2 et: