updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / nodejs-requirejs / PKGBUILD
blobb2858c56de8b5d142a73ca13cea9878bc8941c69
1 # Author: James Burke <jrburke@gmail.com> (http://github.com/jrburke)
2 # Maintainer: jrburke <jrburke@gmail.com>
3 _npmname=requirejs
4 pkgname=nodejs-requirejs # All lowercase
5 pkgver=1.0.4
6 pkgrel=1
7 pkgdesc="Node adapter for RequireJS, for loading AMD modules. Includes RequireJS optimizer"
8 arch=(any)
9 url="http://github.com/jrburke/r.js"
10 license=(BSDMIT)
11 depends=(nodejs)
12 source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
13 noextract=($_npmname-$pkgver.tgz)
14 sha1sums=(a92a39eb9188c21c56472b75446f7c6e97f1b2a5)
15 build() {
16   cd $srcdir
17   local _npmdir="$pkgdir/usr/lib/node_modules/"
18   mkdir -p $_npmdir
19   cd $_npmdir
20   npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver
22 # vim:set ts=2 sw=2 et: