summaryrefslogtreecommitdiff
path: root/pcr/nodejs-bower/PKGBUILD
blob: a3227e069ffea330009f4047bdc2c80354a6559c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
}