Permalink
Browse files

nodejs-grunt: make files owned by root, add MIT

  • Loading branch information...
1 parent 08e0bad commit b6647bd757d672874e89e11a02eea09ab9d73c78 @Lekensteyn committed Mar 16, 2013
Showing with 7 additions and 3 deletions.
  1. +7 −3 nodejs-grunt/PKGBUILD
View
@@ -8,7 +8,7 @@
_npmname=grunt
pkgname=nodejs-grunt # All lowercase
pkgver=0.4.1
-pkgrel=1
+pkgrel=2
pkgdesc="The JavaScript Task Runner"
arch=(any)
url="http://gruntjs.com/"
@@ -23,6 +23,10 @@ build() {
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p $_npmdir
cd $_npmdir
- npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver
+ npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver
}
-# vim:set ts=2 sw=2 et:
+package() {
+ cd $srcdir
+ install -D package/LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
+}
+# vim:set ts=2 sw=2 et:

0 comments on commit b6647bd

Please sign in to comment.