blob: 3928df449ca422092830c039217112ceaeef4601 (
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
|
# Maintainers: Parabola hackers <dev@lists.parabola.nu>
# parabola changes and rationale:
# - using a common nodejs packaging scheme
_npmname=bower
pkgname=nodejs-$_npmname
pkgver=1.8.2
pkgrel=1
pkgdesc='A package manager for the web'
arch=('any')
url='https://www.npmjs.com/package/bower'
license=('MIT')
depends=('nodejs' 'nodejs-semver-utils')
makedepends=('npm')
source=("http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
noextract=($_npmname-$pkgver.tgz)
sha256sums=('6bcf10e9c192fdbd6e89f98e431e095764c8571f66bcd6dd08fbcbd52e8dd722')
package() {
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p "$_npmdir"
cd "$_npmdir"
npm install --verbose --debug -g --user root --prefix "$pkgdir/usr" \
"$srcdir"/$_npmname-$pkgver.tgz
rm -r "$pkgdir/usr/etc"
}
|