summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 87403e0751ca00bea49edc7e9cb9bbe51fecfb12 (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
_npmname=ionic
_npmver=3.17.0
pkgname=ionic-cli
pkgver=3.17.0
pkgrel=1
pkgdesc="The Ionic command line interface (CLI) is your go-to tool for developing Ionic apps"
arch=(any)
url="http://ionicframework.com/"
license=('MIT')
depends=('nodejs' 'npm')
optdepends=()
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
noextract=($_npmname-$_npmver.tgz)
sha256sums=(d2059b53babc04c3da3f62de5e8dad69aa61470263d389240fc09d09370aae87)

package() {
  cd "$srcdir"
  local _npmdir="$pkgdir/usr/lib/node_modules/"
  mkdir -p "$_npmdir"
  cd "$_npmdir"
  npm install -g --prefix "$pkgdir/usr" "$srcdir"/$_npmname-$_npmver.tgz
  rm -r "$pkgdir"/usr/etc
}