summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 74d91486beed5e7903f3ae15724b3db84b8b4020 (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
# Maintainer: Firas Zaidan
pkgname=elm-test
_pkgver=0.19.1
pkgver=${_pkgver}r9
_rev=revision9
pkgrel=2
pkgdesc="Run elm-test suites."
arch=(any)
url="https://github.com/rtfeldman/node-test-runner#readme"
license=(MIT)
depends=('nodejs' 'npm' )
optdepends=()
source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$_pkgver-$_rev.tgz)
noextract=($pkgname-$pkgver.tgz)
sha1sums=(8da169f1f7bf9e4590ffd1a52954d07a90c51c2e)

package() {
  cd $srcdir
  local _npmdir="$pkgdir/usr/lib/node_modules/"
  mkdir -p $_npmdir
  cd $_npmdir
  npm install -g --prefix "$pkgdir/usr" $pkgname@$_pkgver-$_rev
}