summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9c3eb1398cbc1be026dccc3c24fbc1b600ba7b80 (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
# Author: "Cowboy" Ben Alman (http://benalman.com/)
# Contributor: "Cowboy" Ben Alman (http://benalman.com/)
# Contributor: Kyle Robinson Young (http://dontkry.com/)
# Contributor: Tyler Kellen (http://goingslowly.com)
# Contributor: Sindre Sorhus (http://sindresorhus.com)
# Contributor: cowboy <cowboy@rj3.net>
# Contributor: tkellen <tyler@sleekcode.net>
# Contributor: cracoucass14

_npmname=grunt
pkgname=nodejs-grunt # All lowercase
pkgver=0.4.5
pkgrel=2
pkgdesc="The JavaScript Task Runner"
arch=(any)
url="http://gruntjs.com/"
license=(MIT)
depends=('nodejs')
makedepends=('npm')
optdepends=()
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
sha1sums=('56937cd5194324adff6d207631832a9d6ba4e7f0')

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