summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-06 04:29:14 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-06 04:29:14 -0300
commit4b021779bb06417f16a481f51010b6aa813f0935 (patch)
tree5d9303d256ad8d65100efb9f1c5668f3b2217113
parent6c404385a22244e65cd249fba927c6fa3486f149 (diff)
downloadabslibre-4b021779bb06417f16a481f51010b6aa813f0935.tar.gz
abslibre-4b021779bb06417f16a481f51010b6aa813f0935.tar.bz2
abslibre-4b021779bb06417f16a481f51010b6aa813f0935.zip
nodejs-bower: add new package to [pcr]
-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
+}
+