summaryrefslogtreecommitdiff
path: root/pcr/nodejs-bower/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/nodejs-bower/PKGBUILD')
-rw-r--r--pcr/nodejs-bower/PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/pcr/nodejs-bower/PKGBUILD b/pcr/nodejs-bower/PKGBUILD
new file mode 100644
index 000000000..a3227e069
--- /dev/null
+++ b/pcr/nodejs-bower/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer (Arch): Felix Yan <felixonmars@archlinux.org>
+# Contributor (Arch): Tom Vincent <http://tlvince.com/contact>
+
+_npmname=bower
+pkgname=nodejs-$_npmname
+pkgver=1.4.1
+pkgrel=1
+pkgdesc='The browser package manager'
+arch=(any)
+url='https://github.com/twitter/bower'
+license=(MIT)
+depends=('nodejs')
+source=("http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
+noextract=($_npmname-$pkgver.tgz)
+md5sums=('df81b015316062da0ac7ab64a4677fb2')
+
+package() {
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p "$_npmdir"
+ cd "$_npmdir"
+ npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver
+}
+